Eclipse cannot create a java virtual machine
Sometimes you will encounter the "Failed to create the Java Virtual Machine" error when starting eclipse. This is a bug in lower versions, as follows Let’s see how to solve it.
Recommended tutorial:java tutorial
##Solution:
Open the eclipse.ini file in the eclipse directory, modify the–launcher.XXMaxPermSizeproperty, and change its value to 128m
-startup plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.library plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502 -vm %JAVA_HOME% -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m -product org.eclipse.epp.package.jee.product --launcher.defaultAction openFile --launcher.XXMaxPermSize 256M -showsplash org.eclipse.platform --launcher.XXMaxPermSize 128m --launcher.defaultAction openFile -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512mThen it can be started successfully.
The above is the detailed content of Eclipse cannot create java virtual machine. For more information, please follow other related articles on the PHP Chinese website!