相关疑难解决方法(0)

在使用较旧的JDK库时将Eclipse ant降级为编译(Java 1.7 - > 1.6)

我有与升级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)

java eclipse ant jdk1.6 java-7

9
推荐指数
1
解决办法
1万
查看次数

标签 统计

ant ×1

eclipse ×1

java ×1

java-7 ×1

jdk1.6 ×1