错误:Failed to create the Java Virtual Machine
引用:http://apps.hi.baidu.com/share/detail/30819988
以前用的eclipse-jee因?yàn)樵诓渴痦?xiàng)目過(guò)程中總是出現(xiàn)bug被我刪除。今天去eclipse官網(wǎng)又下了一個(gè)Eclipse IDE For Java EE Developers。
版本是:eclipse-jee-helios-SR1-win32.zip
我的jdk版本是:1.6.0_20
解壓后啟動(dòng),發(fā)現(xiàn)彈出提示框“ Failed to create the Java Virtual Machine”
針對(duì)這個(gè)問(wèn)題在網(wǎng)上尋找解決方案。找到幾個(gè),全是Ctrl c/v,不帶半句解釋。
后來(lái),靠著差強(qiáng)人意的有限英語(yǔ)水平,在eclipse官網(wǎng)的論壇搜索,發(fā)現(xiàn)此問(wèn)題是一bug。
“The Java bug was closed for voting and comments at 6969236 on the Java BugParade because the change has been reverted; the related Eclipse bug report is open for oting and comments at bug 319514. ”-引用eclipse官網(wǎng)
在修復(fù)版本推出之前它提供了一個(gè)解決方法:
打開(kāi)eclipse目錄下的eclipse.ini文件,修改–launcher.XXMaxPermSize屬性,其中此屬性有兩處
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
將其值改為128m即可,如下。(事實(shí)上,只改后面一個(gè)就可以,啟動(dòng)eclipse時(shí)以后者為準(zhǔn))
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.1.R36x_v20100810
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
128M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
然后就可以成功啟動(dòng)。
與50位技術(shù)專(zhuān)家面對(duì)面20年技術(shù)見(jiàn)證,附贈(zèng)技術(shù)全景圖總結(jié)
以上是生活随笔為你收集整理的错误:Failed to create the Java Virtual Machine的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 陆续放出各种安装及配置文档
- 下一篇: 关于C#数据类型的一点认识