如何将JRE 1.8与Eclipse Neon一起使用? [英] How can I use JRE 1.8 with Eclipse Neon?

查看:59
本文介绍了如何将JRE 1.8与Eclipse Neon一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试运行Eclipse Neon我遇到此错误:

Trying to run Eclipse Neon I'm getting this error:

To open "Eclipse" you need to install the legacy Java SE 6 runtime.

我已经从Oracle安装了JRE 1.8,而不是旧版JRE:

Instead of the legacy JRE, I have already installed JRE 1.8 from Oracle:

➜  /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version

java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

但是,我也可以看到它在路径中不可用:

However, I can also see it is not available in the path:

➜  java -v
No Java runtime present, requesting install.

➜  /usr/libexec/java_home -v 1.8
Unable to find any JVMs matching version "1.8".
No Java runtime present, try --request to install.

➜  ls /Library/Java/JavaVirtualMachines

推荐答案

在macOS上,您必须安装完整的 JDK 以获得完整的Java支持. JRE不够,因为它仅安装浏览器插件.

On macOS you must install the full JDK to get complete Java support. The JRE is not sufficient as it only installs the browser plugins.

JDK的当前下载地址为此处

The current download for the JDK is here

这篇关于如何将JRE 1.8与Eclipse Neon一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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