I'm really confused. I've worked with Eclipse IDE a lot and now I don't understand what's happening.
I've just downloaded latest Eclipse distributive and cannot start it. I'm getting the following message box before the IDE is even loaded:
---------------------------
Eclipse
---------------------------
JVM terminated. Exit code=-1
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=D:\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-os win32
-ws win32
-arch x86
-showsplash D:\eclipse\\plugins\org.eclipse.platform_3.3.200.v200906111540\splash.bmp
-launcher D:\eclipse\eclipse.exe
-name Eclipse
--launcher.library D:\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519\eclipse_1206.dll
-startup D:\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
-product org.eclipse.epp.package.jee.product
-vm C:\Program Files\Java\jre6\bin\client\jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-Djava.class.path=D:\eclipse\plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
---------------------------
ОК
---------------------------
I cannot find any additional logs. I haven't changed or modified anything. Just unzipped the archive.
Initially my eclipse.ini was:
-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
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
I thought that there is a problem with this newlines between name and value of the parameters. So I removed new lines (but according to this it's actually a wrong move). So my eclipse.ini is now looks like this and I'm able to run it:
-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 256M
-showsplash org.eclipse.platform
--launcher.XXMaxPermSize 256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
I googled for several hours. It seems only I have this problem. I believe Eclipse should work without these modifications of eclipse.ini (especially taking into account the fact they are incorrect). Any hints are much appreciated!
PS: I'm running Vista, all firewalls and antiviral software is off.
For me Eclipse was hanging while starting up (showing splash page)
This worked for me: Delete the .snap file in the workspace. It is located in .metadata/.plugins/org.eclipse.core.resources
This will bring all your projects that were in the workspace (No need to re-import)
The launcher parses each line as a separate argument, the new lines are required. After parsing,
is not the same as
The first is recognized as an argument, the second isn't.
After removing the new-lines from the .ini file, none of your arguments will be recognized and the launcher resorts to defaults. Since this works for you, this implies that one of your arguments in the original .ini is preventing it from starting.
The jvm exiting with -1 is a very early error, before running any eclipse java code so the problem shouldn't be the -startup, --launcher.library, -product or -showsplash. The -Xmx, -Xms and --launcher.XXMaxPermSize are the most likely candidates. Why is there two XXMaxPermSize? (though the launcher only passes one through, so I'm not sure that matters).
I had exactly the same problem. The actual issue that i see here is with the double entry "launcher.XXMaxPermSize 256M ". Once you remove one of these, the settings seem to work fine with your original configuration
I installed some plugins and restarted eclipse. It was failing on startup until I added
-vm C:\env\java\jdk\jdk1_7\bin\javaw.exe
The eclipse installation was working fine before then