An error occurred. I don't know why the original eclipse was good. This morning, something went wrong and JVM terminated was thrown when it couldn't be started. exit code =-1. After checking the information on the Internet, many people have such problems as me. Thanks to our predecessors.
The following error occurs when eclipse cannot be started:
JVM terminated. Exit code =-1
-Dosgi. requiredjavaversion = 1.5
-Xms40m
-Xmx512m
-XX: maxpermsize = 256 m
-Djava. Class. Path = D:/eclipse_rcp/plugins/org. Eclipse. Equinox. launcher_1.0.200.v20090520.jar
-OS Win32
-Ws Win32
-Arch x86
-Showsplash D:/eclipse_rcp // plugins/org. Eclipse. platform_3.3.200.v200905282000/splash.bmp
-Launcher D:/eclipse_rcp/eclipse.exe
-Name eclipse
-- Launcher. Library D:/eclipse_rcp/plugins/org. Eclipse. Equinox. launcher. win32.win32. x86_1.0.200.v20090519/eclipse_1206.dll
-Startup D:/eclipse_rcp/plugins/org. Eclipse. Equinox. launcher_1.0.200.v20090520.jar
-Product org. Eclipse. EPP. Package. RCP. Product
-Vm c:/program files/Java/jdk1.5.0 _ 09/bin/../JRE/bin/client/JVM. dll
-Vmargs
-Dosgi. requiredjavaversion = 1.5
-Xms40m
-Xmx512m
-XX: maxpermsize = 256 m
-Djava. Class. Path = D:/eclipse_rcp/plugins/org. Eclipse. Equinox. launcher_1.0.200.v20090520.jar
You can search for this type of error in the following ways:
First, the content of eclipse. ini in the eclipse installation path is as follows:
-Startup
Plugins/org. Eclipse. Equinox. launcher_1.0.200.v20090520.jar
-- Launcher. Library
Plugins/org. Eclipse. Equinox. launcher. win32.win32. x86_1.0.200.v20090519
-Product
Org. Eclipse. EPP. Package. Jee. Product
-- Launcher. xxmaxpermsize
256 m
-Showsplash
Org. Eclipse. Platform
-- Launcher. xxmaxpermsize
256 m
-Vmargs
-Dosgi. requiredjavaversion = 1.5
-Xms40m
-Xmx512m
First: the memory setting in eclipse. INI is too large. After modifying it, change 128 M to 512 m and change 256 m to M.
Cause: large memory configuration.
Solution 2: After adding the following two lines in eclipse. ini, the problem is solved:
-VM
D:/program files/Java/jdk1.6.0/bin/javaw.exe
Javaw.exe is the installation path of my JDK. At the same time, the complete eclipse. INI is as follows:
-Startup
Plugins/org. Eclipse. Equinox. launcher_1.0.101.r34x_v20081125.jar
-Showsplash
Org. Eclipse. Platform
-- Launcher. xxmaxpermsize
512 m
-VM
C:/Java/jdk1.6.0 _ 10/bin/javaw.exe
-Vmargs
-Xms40m
-Xmx256m
-Djava.net. preferipv4stack = true
Third, delete the eclipse. ini file under the eclipse installation directory and restart eclipse.exe.