简体   繁体   English

带有JDK 7或更低版​​本的Eclipse Neon

[英]Eclipse Neon with JDK 7 or below

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 . 当我在JDK 7及更低版本上使用eclipse neon编译/运行ant的构建时,我收到错误消息,指出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 .... 如果我把我的蚂蚁和jdk改为8蚂蚁我得到了unsupported minior/major version ......

Is there a way to build with jdk 7 and below with eclipse neon? 有没有办法用日食霓虹灯和jdk 7及以下构建? if I made this upgrade am I sacrificing all my previous changes and development? 如果我进行了这次升级,我会牺牲以前的所有变化和开发吗?

Eclipse Neon itself must be run using Java 8. Eclipse Neon本身必须使用Java 8运行。

You can still use older Java versions to run your programs. 您仍然可以使用较旧的Java版本来运行程序。 Configure the available JRE/JDKs in the Preferences in 'Java > Installed JREs'. 在“Java>已安装的JRE”中的“首选项”中配置可用的JRE / JDK。 Then configure your project or Run Configuration to choose the version you want to use. 然后配置项目或“运行配置”以选择要使用的版本。

You can edit like this following(make sure with your installation path), 您可以像下面这样编辑(确保安装路径),

-vm
/usr/lib/jvm/java-7-openjdk-amd64/jre/bin 
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

Ideally Neon should be run on java 1.8 but you can run neon on java 1.7 理想情况下,Neon应该在java 1.8上运行,但你可以在java 1.7上运行neon

just change the java version in eclipse.ini file. 只需更改eclipse.ini文件中的java版本。 Dosgi.requiredJavaVersion=1.7 Dosgi.requiredJavaVersion = 1.7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM