启动Eclipse时,启不起来JVM terminated. Exit code=-1
生活随笔
收集整理的這篇文章主要介紹了
启动Eclipse时,启不起来JVM terminated. Exit code=-1
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
轉載自:http://blog.csdn.net/CaidChen/article/details/5315833
出現錯誤了,不知道什么原因原本好好的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的內容如下:
-startupplugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar--launcher.libraryplugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519-productorg.eclipse.epp.package.jee.product--launcher.XXMaxPermSize256M-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256m-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 即可。
總結
以上是生活随笔為你收集整理的启动Eclipse时,启不起来JVM terminated. Exit code=-1的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux gz 解压缩
- 下一篇: eclipse项目导出错误处理