Failed to create the Java Virtual Machine. solution to the problem, failedvirtual
When you run Eclipse, the error "Failed to create the Java Virtual Machine." occurs:
The solution is to find the Eclipse. ini file in the decompressed directory of eclipse and modify the parameters.
Eclipse. ini file before modification:
-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.XXMaxPermSize256m--launcher.defaultActionopenFile-vmargs-Dosgi.requiredJavaVersion=1.6-XX:MaxPermSize=128m-Xms256m-Xmx1024m
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.XXMaxPermSize256m--launcher.defaultActionopenFile-vmargs-Dosgi.requiredJavaVersion=1.6-XX:MaxPermSize=128m-Xms256m-Xmx256m
After you change-Xmx from 1024m to 256m, it will run normally.
Meanings of parameters:
-XX: MaxPermSize: Maximum Non-heap memory size allowed by JVM
-Xms: Heap memory initially allocated by JVM
-Xmx: Maximum heap memory that JVM can allocate