[英]Cant run eclipse on my Mac
I installed the latest version of Java and when I try to run eclipse it says: 我安装了最新版本的Java,当我尝试运行eclipse时说:
Version
1.6.0_65
of the JVM is not suitable for this product.JVM的
1.6.0_65
版本不适用于此产品。 Version:1.8
or greater is required.版本:
1.8
或更高版本。
I searched many forums and found the java -version
command. 我搜索了许多论坛,并找到了
java -version
命令。 When I run from the terminal I get: 从终端运行时,我得到:
java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)
java版本“ 1.6.0_65” Java SE运行时环境(内部版本1.6.0_65-b14-466.1-11M4716)Java HotSpot™64位服务器VM(内部版本20.65-b04-466.1,混合模式)
But when I open Java on my system preferences it says I have 1.8
. 但是当我在系统偏好设置中打开Java时,它说我有
1.8
。
Why? 为什么? What do I do?
我该怎么办?
It says 1.6
because it is the pre-installed version in your system. 之所以说
1.6
是因为它是系统中的预装版本。 But in order to install different version of Java, you need to install the latest development kit from Oracle's website ie http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 但是,为了安装不同版本的Java,您需要从Oracle网站安装最新的开发工具包,即http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.