For the above reasons, the Java virtual machine can not be opened. It may be that the virtual memory of the Java virtual machine is set incorrectly. Open the eclipse decompression directory and open it eclipse.ini Documents.
The contents of the original document are 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
256M
-showsplash
org.eclipse.platform
— launcher.XXMaxPermSize
256m
— launcher.defaultAction
openFile
-vmargs
– Dosgi.requiredJavaVersion=1 .5
-Xms40m
-Xmx512m
Revised eclipse.ini The documents are 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 .6
-Xms40m
-Xmx256m
Note: the red part is the modified part.
After saving, restart eclipse.