Tuesday 15 July 2014

java - Switch on String 1.7 -


I imported a group project into Eclipse and found the following error:

'switch Can not be 1.7 '

At the value of the string for the source level given below, which is fine. I think the switch on the string was added to 1.7. When I fix my error to change my workspace or project compliance in 1.7, I end up with errors in every line of code.

Here is an error that appears at the top of the console:

java.lang.UnsupportedClassVersionError: driver: unsupported head.monore version 51.0

Why is any idea why and how can I fix it?

Ensure that you are not just setting your workspace to Java 1.7, but also that your Near Java 1.7 JDK is below it.

No comments:

Post a Comment