怎样在Ubuntu 14.04中安装Java
2. www.cnblogs.com/fnng/archive/2013/01/30/2883815.html
点击出现下列的错误时
VM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-jar /usr/java/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-os linux
-ws gtk
-arch x86
-showsplash /usr/java/eclipse//plugins/org.eclipse.platform_4.5.1.v20150904-0015/splash.bmp
-launcher /usr/java/eclipse/eclipse
-name Eclipse
--launcher.library /usr/java/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.300.v20150602-1417/eclipse_1612.so
-startup /usr/java/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.appendVmargs
-exitdata 35001f
-product org.eclipse.epp.package.cpp.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
-jar /usr/java/eclipse//plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
说明你安装的eclipse版本和JDK的版本不兼容,比如eclipse是linux 32bit,而你的JDK版本是64bit。
可以通过命令:semantic@ubuntu:~$ java -version 来查看JVM的版本:
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)