changed jvm to 1.7 - the switch on string needs it