问题描述
当我在 JDK 7 及以下版本上使用 eclipse neon 在 ant 上编译/运行构建时,我收到错误消息说Unsupported must run on 1.8 or later
.如果我在 ant 上将 ant 和 jdk 更改为 8,我会得到不受支持的小/主要版本
....
When I compile / run the build on ant with eclipse neon on JDK 7 and below I got error message saying Unsupported must run on 1.8 or higher
. If I changed my ant and jdk to 8 on ant I got unsupported minior/major version
....
有没有办法使用 eclipse neon 使用 jdk 7 及以下版本进行构建?如果我进行了这次升级,我是否会牺牲我之前的所有更改和开发?
Is there a way to build with jdk 7 and below with eclipse neon? if I made this upgrade am I sacrificing all my previous changes and development?
推荐答案
Eclipse Neon 本身必须使用 Java 8 运行.
Eclipse Neon itself must be run using Java 8.
您仍然可以使用较旧的 Java 版本来运行您的程序.在Java > 已安装 JRE"的首选项中配置可用的 JRE/JDK.然后配置您的项目或运行配置以选择您要使用的版本.
You can still use older Java versions to run your programs. Configure the available JRE/JDKs in the Preferences in 'Java > Installed JREs'. Then configure your project or Run Configuration to choose the version you want to use.
这篇关于带有 JDK 7 或更低版本的 Eclipse Neon的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!