Running eclipse, "Failed to create the Java Virtual machine" appears. Error:
The solution is to find the Eclipse.ini file in the extract directory of Eclipse and modify the parameters.
Pre-Modified Eclipse.ini file:
-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.win32.win32.x86_1.1.200. V20120913-144807-productcom.android.ide.eclipse.adt.package.adtproduct-showsplashorg.eclipse.platform--launcher.xxmaxperm Size256m--launcher.defaultactionopenfile-vmargs-dosgi.requiredjavaversion=1.6-xx:maxpermsize= 128m-xms256m-xmx1024m
after the modified Eclipse.ini File:
-startupplugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar--launcher.libraryplugins/ org.eclipse.equinox.launcher.win32.win32.x86_1.1.200. V20120913-144807-productcom.android.ide.eclipse.adt.package.adtproduct-showsplashorg.eclipse.platform--launcher.xxmaxperm Size256m--launcher.defaultactionopenfile-vmargs-dosgi.requiredjavaversion=1.6-xx:maxpermsize= 128m-xms256m-xmx256m
Change the-xmx from 1024m to 256m and it will work.
The meaning of each parameter:
-xx:maxpermsize: Maximum amount of non-heap memory allowed by the JVM
-xms: Heap memory initially allocated by the JVM
-xmx: JVM allows allocation of maximum heap memory
Failed to create the Java Virtual machine. Problem solving