啟動Eclipse時,啟不起來JVM terminated. Exit code=-1 .

來源:互聯網
上載者:User

出現錯誤了,不知道什麼原因原本好好的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 即可。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.