[英]Installing eclipse mars on Linux
I just downloaded the linux 64 bit tar for eclipse mars. 我刚刚下载了Eclipse Mars的Linux 64位tar。 When I try and run the installer it gives me the following message
当我尝试运行安装程序时,它会显示以下消息
Version 1.6.0_31 of the JVM is not suitable for this product.
Version: 1.7 or greater is required.
I am on java version 1.8. 我使用的是Java版本1.8。 See
看到
$java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Where does it get the 1.6 version of java? 它在哪里获得Java 1.6版本?
.cshrc.mine
setenv $JAVA_HOME /path/to/Java8
setenv PATH /path/to/Java8/bin/:$PATH
Also 也
$ java -XshowSettings:properties -version
Property settings:
// Other props
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_65-b17
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Try specify the JDK/JRE path by adding the following two lines into the beginning of your eclipse.ini file: 尝试通过将以下两行添加到eclipse.ini文件的开头来指定JDK / JRE路径:
-vm
[your-path-to-java-executable]
In your eclipse.ini file you should point to java8 在您的eclipse.ini文件中,您应该指向java8
-vm
/opt/jdk18025/bin/javaw.exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.