解决eclipse启动错误:failed to create the java virtual machine

  今天在打开eclipse时突然出现了一个启动错误,failed to create the java virtual machine,

如图:

google了一下,都说是eclipse目录下eclipse.ini的配置问题,

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-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
-Xms256m
-Xmx600m -Dfile.encoding=UTF-8

 解决方法是将代码中的两个256改为128,我改过之后,发现没效果,还是那个问题,于是继续找原因,最后发现将代码中蓝色的-Xms256m  -Xmx600m 改为-Xms40m -Xmx256m 后,一切正常。具体原因还不清楚,需要进一步研究。

posted @ 2012-03-21 11:24  eggee  Views(583)  Comments(0)    收藏  举报