解决Eclipse 启动时提示 Failed to create the Java Virtual Machine

来源:互联网 发布:深圳市软件测试培训 编辑:程序博客网 时间:2024/06/06 07:49

from: http://blog.csdn.net/epfeng/article/details/5892304

环境: JDK:1.6.0_20

    Eclipse version: JUNO

Eclipse启动,发现弹出提示框“ Failed to create the Java Virtual Machine” ,几经周折终于找到了解决办法,特与朋友们分享,方法如下: 找到eclipse 目录下的eclipse.ini,可以看到如下内容:
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-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


将其修改为如下内容,即可启动Eclipse
-startup
plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503
-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.6
-Xms40m
-Xmx256m


原创粉丝点击