今天打开eclipse出现以下提示:
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=D:\eclipse\plugins\org.eclipse.equinox.launcher_1.01.R33x_v20070828.jar
-os win32
-ws win32
-arch x86
-showsplash D:\eclipse\\plugins\org.eclipse.platform_3.3.2.R33x_v20071022\splash.bmp
-launcher D:\eclipse\eclise.exe
-name Eclipse
--launcher.library
D:\ecllipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.2.r331_v20071019\eclipse_1021.dll
-startup D:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
-vm F:\Program Files\Java\jdk1.6.0_02\bin\..\jre\bin\client\jvm.dll
--vmargs
-Dosgi.requiredJavaVersion=1.5
-XMs40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=D:eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
查了一下,找到解决方案:
运行安装eclipse
修改eclipse.ini文件,添加
-vm
/opt/jdk1.6.0_03/jre/bin/java
注意:此设置为linux版本的linux,如果是windows的版本添加内容可能为
-vm
/opt/jdk1.6.0_03/jre/bin/javaw.exe