初次打开eclipse可能会出现这样的问题:
无故无法启动eclipse :
---------------------------
Eclipse
---------------------------
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=E:\JAVA\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os win32
-ws win32
-arch x86
-showsplash E:\JAVA\eclipse\\plugins\org.eclipse.platform_3.3.201.v200909170800\splash.bmp
-launcher E:\JAVA\eclipse\eclipse.exe
-name Eclipse
--launcher.library E:\JAVA\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup E:\JAVA\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-product org.eclipse.epp.package.jee.product
-vm C:\Program Files\Java\jre1.6.0\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=E:\JAVA\eclipse\plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
问题出现的原因可能是:eclipse.ini中内存设置过大。
解决方法:应把 Xmx512m -> Xmx256m, 分配最大内存太大,应减少。或者直接将-Xms40m-Xmx512m中的"-"去掉