|eclipse ant won't compile target 1.6 in jdk 7 [message #1013048]
||Fri, 22 February 2013 12:08
| Franck Routier
Registered: February 2013
I have eclipse running under OpenJDK 7.|
My setting for java/compiler/compliance level is 1.6.
My ant target for javac specify target=1.6.
Compiling in eclipse Workspace works.
Compiling with ant from console work and javap -verbose confirms the produced bytecode is 50.0.
But if I try to 'Run as/Ant build' my build.xml under eclipse, I get the following error:
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : Unsupported major.minor version 51.0
I must be missing some setting somewhere, but I can find where ?
Powered by FUDForum
. Page generated in 0.10469 seconds