今天在启动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.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
将最后一行的-Xmx512m改成-Xmx256m保存即可。
引用地址:http://www.vvschool.cn/html/program/technology/2010/1216/4734.html