我刚刚为eclipse火星下载了linux 64位tar。当我尝试运行安装程序时,它会给我以下消息
Version 1.6.0_31 of the JVM is not suitable for this product.
Version: 1.7 or greater is required.
我在java版本1.8上。参见
$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)
它在哪里获得1.6版本的java?
.cshrc.mine
setenv $JAVA_HOME /path/to/Java8
setenv PATH /path/to/Java8/bin/:$PATH
另外
$ 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)
答案 0 :(得分:0)
尝试通过在eclipse.ini文件的开头添加以下两行来指定JDK / JRE路径:
-vm
[your-path-to-java-executable]
答案 1 :(得分:0)
在eclipse.ini文件中,您应该指向java8
-vm
/opt/jdk18025/bin/javaw.exe