Eclipse启动时提示Fail to create the Java Virtual Machine的解决方法

这个错误是Eclipse里面的一个bug,我们通过如下的设置就可以解决它。

打开eclipse安装目录下的eclipse.ini文件:

 

将其中的256m改为128m,512m改为256m,1024m改为512m即可。

修改后的文件内容如下:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.0.4-741630

原文地址:https://www.cnblogs.com/tianzhijiexian/p/3864341.html