javaeclipsejava-8eclipse-mars

Eclipse Mars starts with exit code=1 when using JDK 8


I plan moving to Eclipse Mars and recently installed the 64 Bit version on Windows 7. Since the JBoss Tools require Java 8, I also downloaded JDK 8u51 and unzipped it to my Programs (x86) folder. I want to keep JDK 1.7.0 as my system's default JVM, so I did not fully install Java 8.

Furthermore, I updated my eclipse.ini, so it points to the new JVM. With JDK 1.7.0 my Eclipse Mars installation launched without any problems, with JDK 8 it does not start and returns with exit code=1, however.

Am I missing anything out? The error message is not much of a help, sadly.

This is my launch configuration:

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
-vm
C:/Program Files (x86)/Java/jdk8_51/bin/javaw.exe
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xmn128m
-Xss2m
-Dosgi.requiredJavaVersion=1.7
-Xms1024m
-Xmx1024m

Edit: Eclipse error log:

http://postimg.org/image/7iugfivub/


Solution

  • I missed out unpacking the *.pack files:

    for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"
    

    Since I did not install the JDK, but simply unzipped it for sake of simplicity, I forgot about the packaged JARs. Now my JDK is up and running, plus Eclipse Mars starts without an error.

    This solved the problem for me.