启动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
解决方法:
1。安装jdk6.0后jvm.dll为jre6/bin/client/jvm.dll,应改为jdk目录下的jvm.dll(jdk/bin/client/jvm.dll)。
你会发现弹出的对话框上的jvm.dll为jre中的,即为此错误。
解决:在eclipse.ini中添加或者更改 -vm c:program files/java/jre6/bin/client/jvm.dl
2.eclipse.ini中内存设置过大。应把
Xmx512m -> Xmx256m,
分配最大内存太大,应减少