如何将执行环境 1.8 添加到 Eclipse Luna? [英] How do I add execution environment 1.8 to Eclipse Luna?

查看:13
本文介绍了如何将执行环境 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

这篇关于如何将执行环境 1.8 添加到 Eclipse Luna?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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