This article is reproduced from the Internet
Eclipse does not start up abnormally: JVM terminated. Exit Code=-1
Eclipse does not start up and the following error occurs:
The
JVM terminated. Exit code=-1
-xms40m
-xmx256m
-djava.net.preferipv4stack=true
-xx:maxpermsize=512m
- DJAVA.CLASS.PATH=D:/DEVELOP/PHP/ECLIPSE/PLUGINS/ORG.ECLIPSE.EQUINOX.LAUNCHER_1.0.101.R34X_V20081125.J
AR
-os Win32
-ws WIN32
-arch x86
-showsplash d:/develop/php/eclipse//plugins/org.eclipse.platform_ 3.3.101.v200902111700/splash.bmp
-launcher d:/develop/php/eclipse/eclipse.exe
-name Eclipse
-- Launcher.library
D:/develop/php/eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.101.r34x_ V20080731/ecl
Ipse_1115.dll
-startup d:/develop/php/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101. R34x_v20081125.jar
-VM c:/java/jdk1.6.0_10/bin/. /jre/bin/client/jvm.dll
-vmargs
-xms40m
-xmx256m
-djava.net.preferipv4stack=true
-XX: maxpermsize=512m
-djava.class.path=d:/develop/php/eclipse/plugins/org.eclipse.equinox.launcher_1.0.101.r34x _V20081125.J
ar
There are several ways to resolve such errors on-line search:
First: The contents of Eclipse.ini under the Eclipse installation path are as follows:
-startup
Plugins/org.eclipse.equinox.launcher_1.0.101.r34x_v20081125.jar
-showsplash
Org.eclipse.platform
--launcher. Xxmaxpermsize
512m
-vmargs
-xms40m
-xmx256m
-djava.net.preferipv4stack=true
The first kind: Eclipse.ini in memory settings too big problem, modified a bit,-xms256m changed to-xms128m, XMX512M changed to xmx256m, can.
Cause: Large memory configuration is the cause.
The second type: in Eclipse.ini, the following two lines are added, the problem is resolved:
-vm
D:/program Files/java/jdk1.6.0/bin/javaw.exe
Where Javaw.exe is the path to my JDK installation. Meanwhile, 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
512m
-vm
C:/java/jdk1.6.0_10/bin/javaw.exe
-vmargs
-xms40m
-xmx256m
-djava.net.preferipv4stack=true
Third: Remove the Eclipse.ini file from the Eclipse installation directory and restart the Eclipse.exe. A Eclipse.ini file is re-created automatically at launch time.
Which do not understand is the first case: My memory configuration has not changed, and used to be normal, how suddenly the memory configuration is too large, do not understand, if any one knows, also please advise.