今天遇到了这个问题,启动eclipse弹出以下内容:
JVM terminated.Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=D:\eclipse\\plugins\org.eclips.equinox.launcher_1.0.1.r33x_v20070828.jar
-os win32
-ws win32
-atch x86
-showsplash D:\eclipse\\plugins\org.eclipse.platform_3.3.2.R33X_V20071022\splash.bmp
-launcher D:\eclipse\eclipse.exe
-name Eclipse
--launcher.library D:\eclipse\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 C:\Progarm Files\Java\jre1.5.0_06\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-XX:MaxPermSize=256m
-Djava.class.path=D:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
解决方法:在eclipse.ini文件中加入
-vm
C:\Java\jdk1.6.0_10\jre\bin\javaw.exe
JVM terminated.Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256M
-Djava.class.path=D:\eclipse\\plugins\org.eclips.equinox.launcher_1.0.1.r33x_v20070828.jar
-os win32
-ws win32
-atch x86
-showsplash D:\eclipse\\plugins\org.eclipse.platform_3.3.2.R33X_V20071022\splash.bmp
-launcher D:\eclipse\eclipse.exe
-name Eclipse
--launcher.library D:\eclipse\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 C:\Progarm Files\Java\jre1.5.0_06\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-XX:MaxPermSize=256m
-Djava.class.path=D:\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
解决方法:在eclipse.ini文件中加入
-vm
C:\Java\jdk1.6.0_10\jre\bin\javaw.exe