我有与升级Eclipse java编译器相反的问题:我正在使用可以支持JDK 1.7的Eclipse 3.7.1 ,但是现在我正在为JDK 1.6开发...它一直工作正常,但突然间我得到了吨当我做一个蚂蚁构建时,这样的错误(见下文).
我想使用JDK 1.6; 我在哪里设置?Eclipse设置正确(每个项目的Java Build Path指向JRE系统库[jdk1.6.0_16]),但是ant似乎忽略了它.
[javac] warning: java\nio\ByteBuffer.class(java\nio:ByteBuffer.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: java\lang\Object.class(java\lang:Object.class): major version 51 is newer than 50, the highest major version supported by this compiler.
[javac] It is recommended that the compiler be upgraded.
[javac] warning: java\util\Collections.class(java\util:Collections.class): major version 51 is newer than 50, the …Run Code Online (Sandbox Code Playgroud)