您的位置:首页 > 编程语言 > Java开发

Failed to create the Java Virtual Machine 解决方法

2012-08-27 10:07 483 查看
Failed to create the Java Virtual Machine,解决办法:

打开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.XXMaxPermSize

128M

-showsplash

org.eclipse.platform

--launcher.XXMaxPermSize

128m

--launcher.defaultAction

openFile

-vmargs

-Dosgi.requiredJavaVersion=1.5

-Xms40m

-Xmx512m
然后就可以成功启动。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐