启动Eclipse时,启不起来JVM terminated. Exit code=-1
出现错误了,不知道什么原因原本好好的Eclipse,今天早上出问题了,启动不起来还抛出JVM terminated. Exit code=-1,上网查了资料以后,原来好多人和我一样都有这样的问题,真是感谢前辈们了。
?
?
Eclipse 启动不起来,出现以下错误:
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=D:/eclipse_rcp/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-os win32
-ws win32
-arch x86
-showsplash D:/eclipse_rcp//plugins/org.eclipse.platform_3.3.200.v200905282000/splash.bmp
-launcher D:/eclipse_rcp/eclipse.exe
-name Eclipse
--launcher.library D:/eclipse_rcp/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519/eclipse_1206.dll
-startup D:/eclipse_rcp/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-product org.eclipse.epp.package.rcp.product
-vm C:/Program Files/Java/jdk1.5.0_09/bin/../jre/bin/client/jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=D:/eclipse_rcp/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar?
网上搜索->解决此类错误的方法有以下几种:
首先:eclipse 安装路径下的eclipse.ini的内容如下:
?
-startup
plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
?
????????? 第一种:?eclipse.ini中内存设置过大的问题,修改了一下,256m改成128m,把512m?? 改为 256m,即可。
??????????????????????? 原因:大内存的配置导致的。
??????????第二种:在eclipse.ini 中,增加了如下两行后,问题解决:?
????????????????????????? -vm?
???????????????????????? D:/Program Files/Java/jdk1.6.0/bin/javaw.exe??
???????????????????????? 其中javaw.exe是我的JDK安装路径。同时,完整的eclipse.ini如下
????????????????????????? -startup
????????????????????????? plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar
???????????????????????? -showsplash
???????????????????????? org.eclipse.platform
???????????????????????? --launcher.XXMaxPermSize
???????????????????????? 512m
???????????????????????? -vm
??????????????????????????C:/Java/jdk1.6.0_10/bin/javaw.exe
???????????????????????? -vmargs
???????????????????????? -Xms40m
??????????????????????? -Xmx256m
??????????????????????? -Djava.net.preferIPv4Stack=true
??????????第三种:?删除eclipse 安装目录下的eclipse.ini 文件,重新启动 eclipse.exe 即可