如何将执行环境 1.8 添加到 Eclipse Luna?
我已安装 jre8 并将其设置为 jre 的默认值,但在编译器合规性下我找不到 1.8 并且在执行环境下我找不到 javaSE 1.8.我正在使用最新版本的 Eclipse EE.
I have jre8 installed and set as the default for the jre but under compiler compliance I can't find 1.8 and under execution environment I can't find javaSE 1.8. I'm using the latest build of Eclipse EE.
我看了这本手册http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_new_jre.htm但是我在我的 jre8 或 JDK1.8 安装目录中找不到任何 .ee 文件.
I took a look at this manual http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-add_new_jre.htm But I couldn't find any .ee files in my jre8 or JDK1.8 installation directories.
推荐答案
打开首选项并查看Java > 已安装的 JRE".如果那里没有显示 Java 8,请单击添加..."以添加它.关闭首选项.
Open Preferences and look in 'Java > Installed JREs'. If you don't have a Java 8 shown there click 'Add...' to add it. Close the preferences.
再次打开 Preferences 并查看Java > Installed JREs > Execution Environments",选择JavaSE-1.8"并确保您的 Java 1.8 被选中为 Compatible JRE
Open Preferences again and look in 'Java > Installed JREs > Execution Environments', select 'JavaSE-1.8' and make sure your Java 1.8 is checked as the Compatible JRE
相关文章