用户登录
用户注册

分享至

如何将执行环境 1.8 添加到 Eclipse Luna?

  • 作者: 大聖归来
  • 来源: 51数据库
  • 2023-01-14

问题描述

我已安装 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://www.51sjk.com/Upload/Articles/1/0/341/341295_20230114130527885.htm但是我在我的 jre8 或 JDK1.8 安装目录中找不到任何 .ee 文件.

I took a look at this manual http://www.51sjk.com/Upload/Articles/1/0/341/341295_20230114130529854.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

软件
前端设计
程序设计
Java相关