将eclipse升级到java 8 [英] upgrade eclipse to java 8

查看:538
本文介绍了将eclipse升级到java 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的eclipse环境更新为java 8.我安装了jdk和jre版本8.我也这样做:



https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler



然后在项目 - >属性 - > java构建路径 - > JRE系统库 - >编辑 - >执行环境 - > JavaSE-1.8(未绑定),它是唯一的名称为java 8的选项。但是当我选择它时,它说:工作空间中没有JRE与指定的执行环境兼容:JavaSE-1.8

解决方案

转到窗口|首。然后在 Java |下安装JRE ,点击添加,点击标准虚拟机,然后点击下一步,然后点击目录,找到你安装JDK 1.8的位置。最后,确保已安装的JRE列表上的复选框已打开。


I am trying to update my eclipse environment to java 8. I installed the jdk and jre version 8. I also did this:

https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler

then in project -> properties -> java build path -> JRE system libraries -> edit -> execution environment -> JavaSE-1.8(unbound) which is the only option that has java 8 in its name. but when I select it it says : No JREs in workspace compatible with specified execution environment: JavaSE-1.8

解决方案

Go to Window | Preferences. Then under Java | Installed JREs, click "Add", click "Standard VM", then "Next", then "Directory", and find the location where you installed JDK 1.8. Lastly, make sure the checkbox next to it, on the list of installed JREs, is switched on.

这篇关于将eclipse升级到java 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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