I have a native memory of 1G (the machine 1G memory may not be the case above), 360 security defender Run, start Eclipse 3.7, launch failure, prompt information as follows
Failed to create the Java Virtual Machine
Solution One: Reduce the startup initialization memory value of Eclipse
Modify the memory value in the file "install directory/eclipse/eclipse.ini" as follows:
-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
-product
Org.eclipse.epp.package.jee.product
--launcher.defaultaction
openfile
--launcher. Xxmaxpermsize
128M
-showsplash
org.eclipse.platform
--launcher. Xxmaxpermsize
128M
--launcher.defaultaction
openfile
-vmargs
- dosgi.requiredjavaversion=1.5
-xms40m
-xmx512m
Note: The 128M value of lines 10th and 14th is originally 256M.
Solution Two: Specify the JVM launched by Eclipse (recommended)
Modify the file "install directory/eclipse/eclipse.ini" to add the following information to the file:
-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
-product
Org.eclipse.epp.package.jee.product
--launcher.defaultaction
openfile
--launcher. Xxmaxpermsize
256M
-showsplash
org.eclipse.platform
--launcher. Xxmaxpermsize
256M
--launcher.defaultaction
openfile
-vm
c:/program files/java/jre7/ Bin/javaw.exe
-vmargs
-dosgi.requiredjavaversion=1.5
-xms40m
-xmx512m
Note: Lines 17th and 18th are to be placed before the 19th line "-vmargs" and overwrite the "Bin/javaw.exe" of the cost machine jdk or JRE.