日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

Failed to create the Java Virtual Machine

發布時間:2024/9/20 java 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Failed to create the Java Virtual Machine 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

以前用的eclipse-jee因為在部署項目過程中總是出現bug被我刪除。今天去eclipse官網又下了一個Eclipse IDE For Java EE Developers。

版本是:eclipse-jee-helios-SR1-win32.zip

我的jdk版本是:1.6.0_20

解壓后啟動,發現彈出提示框“ Failed to create the Java Virtual Machine”

針對這個問題在網上尋找解決方案。找到幾個,全是Ctrl c/v,不帶半句解釋。

后來,靠著差強人意的有限英語水平,在eclipse官網的論壇搜索,發現此問題是一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官網

在修復版本推出之前它提供了一個解決方法:

打開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即可,如下。(事實上,只改后面一個就可以,啟動eclipse時以后者為準)

-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.XXMaxPermSize128M-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize128m--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

然后就可以成功啟動。

總結

以上是生活随笔為你收集整理的Failed to create the Java Virtual Machine的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。