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
Eclipse - Installing a new JRE (Java SE 8 1.8.0)
提问by Hyman
I am trying to install Java 8.
我正在尝试安装 Java 8。
What I have done so far:
到目前为止我做了什么:
- installed the latest version of Eclipse
- downloaded and installed Java SE Runtime Environment 8 http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
- tried to follow this -> upgrade eclipse to java 8without a happy ending
- 安装了最新版本的 Eclipse
- 下载并安装 Java SE Runtime Environment 8 http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
- 尝试遵循此操作->将 Eclipse 升级到 Java 8却没有一个圆满的结局
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:
看看我的屏幕:
If you click in edit (check your java 8 path):
如果您单击编辑(检查您的 java 8 路径):