20 3 月 2014

Eclipse出现failed to create the java virtual machine

有时候重装系统之后会发现eclipse很意外的打不开,出现failed to create the java virtual machine的这种情况

 

“failed to create the java virtual machine”

对于这种情况的解决方法很简单,原因是计算机的内存不足。可以通过修改eclipse的配置文件来解决这种情况~

首先进入到eclipse的安装文件夹,打开 eclipse,ini 文件,找到–launcher.XXMaxPermSize  256M  将256M改成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.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.5
-Xms40m
-Xmx512m

 

源文件如下:
-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

2 comments

  1. 不错的东东,谢谢楼主分享!

  2. It’s awesome in favor of me to have a web page, which is useful in favor of my experience.
    thanks admin