When eclipse is started for the first time, this problem may occur:
Eclipse cannot be started for no reason:
---------------------------
Eclipse
---------------------------
JVM terminated. Exit code =-1
-Dosgi. requiredjavaversion = 1.5
-Xms40m
-Xmx512m
-XX: maxpermsize = 256 m
-Djava. Class. Path = E: \ Java \ eclipse \ plugins/org. Eclipse. Equinox. launcher_1.0.201.r35x_v20090715.jar
-OS Win32
-Ws Win32
-Arch x86
-Showsplash E: \ Java \ eclipse \ plugins \ org. Eclipse. platform_3.3.201.v200909170800 \ splash.bmp
-Launcher E: \ Java \ eclipse \ eclipse.exe
-Name eclipse
-- Launcher. Library E: \ Java \ eclipse \ plugins/org. Eclipse. Equinox. launcher. win32.win32. x86_1.0.200.v20090519 \ eclipse_1206.dll
-Startup E: \ Java \ eclipse \ plugins/org. Eclipse. Equinox. launcher_1.0.201.r35x_v20090715.jar
-Product org. Eclipse. EPP. Package. Jee. Product
-VM c: \ Program Files \ Java \ jre1.6.0 \ bin \ Client \ JVM. dll
-Vmargs
-Dosgi. requiredjavaversion = 1.5
-Xms40m
-Xmx512m
-XX: maxpermsize = 256 m
-Djava. Class. Path = E: \ Java \ eclipse \ plugins/org. Eclipse. Equinox. launcher_1.0.201.r35x_v20090715.jar
The cause may be that the memory settings in eclipse. ini are too large.
Solution:Xmx512m-> xmx256m, The maximum allocated memory is too large and should be reduced. Or directly-Remove "-" in the Xms40m-Xmx512m
Xms40m