Eclipse错误Failed to create the Java Virtual Machine

将原来的eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130807-1835
-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
–launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.6.2-1085508
-XX:MaxPermSize=512M

改成

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
–launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130807-1835
-product
com.android.ide.eclipse.adt.package.product
–launcher.XXMaxPermSize
128M
-showsplash
com.android.ide.eclipse.adt.package.product
–launcher.XXMaxPermSize
128m
–launcher.defaultAction
openFile
–launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx768m
-Declipse.buildId=v22.6.2-1085508
-XX:MaxPermSize=512M