Eclipse - 安装新的 JRE (Java SE 8 1.8.0)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26371055/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 02:23:15  来源:igfitidea点击:

Eclipse - Installing a new JRE (Java SE 8 1.8.0)

javaeclipsejava-8

提问by Hyman

I am trying to install Java 8.

我正在尝试安装 Java 8。

What I have done so far:

到目前为止我做了什么:

The error I get as soon as I create the project:

我在创建项目后立即得到的错误:

Unbound classpath container: 'JRE System Library [JavaSE-1.8]' in project 'HymanTest' Build Path Problem

未绑定的类路径容器:项目“HymanTest”中的“JRE 系统库 [JavaSE-1.8]”构建路径问题

Any idea? Can someone tell me what to do step by step?

任何的想法?有人能告诉我一步一步该怎么做吗?

采纳答案by Gere

You can have many java versions in your system.

您的系统中可以有多个 Java 版本。

I think you should add the java 8 in yours JREs installed or edit.

我认为您应该在安装或编辑的 JRE 中添加 java 8。

Take a look my screen:

看看我的屏幕:

enter image description here

在此处输入图片说明

If you click in edit (check your java 8 path):

如果您单击编辑(检查您的 java 8 路径):

enter image description here

在此处输入图片说明