If you're getting this error because you're purposefully trying to build to Java 6, but you have Java 7 elsewhere in Eclipse, then it may be because you are referencing a Java 7 tools.jar
in a Java 6 environment.
You'll need to install the JDK 6 (not JRE) and add the JRE 6 tools.jar
as a User Entry in the Classpath of the build configuration, listed above the JRE 7 tools.jar
.