带有 JDK 7 或更低版本的 Eclipse Neon [英] Eclipse Neon with JDK 7 or below

查看:31
本文介绍了带有 JDK 7 或更低版本的 Eclipse Neon的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆