Cannot start Eclipse Neon with JDK 9 on Ubuntu - Exit code=13

772 views Asked by At

I have Java 9 on 64 bits:

$ java -version
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+140)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+140, mixed mode)

$ javac -version
javac 9-ea

I installed Eclipse 4.5.0 (JEE Neon) on 64 bits under ~/eclipse/jee-neon/eclipse using the GUI (starting from eclipse-inst-linux64.tar.gz):

$ cat eclipse.ini | grep x86_64
/home/user/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444

When I run eclipse in the installation folder, I get a window containing the following error:

JVM terminated. Exit code=13
/usr/lib/jvm/java-9-oracle/bin/java
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/
-jar /home/user/eclipse/jee-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/user/eclipse/jee-neon/eclipse/eclipse
-name Eclipse
--launcher.library /home/user/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
-startup /home/user/eclipse/jee-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.appendVmargs
-exitdata 1b8012
-product org.eclipse.epp.package.jee.product
-vm /usr/lib/jvm/java-9-oracle/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
/home/user/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-9-oracle/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/

Edit:

  • the value for -vm is on a different line in eclipse.ini
  • changing the path value to /usr/lib/jvm/java-9-oracle/bin/java doesn't solve anything (and it doesn't seem to be a problem, because in the error message /java was already appended)
  • changing 1.8 to 1.9 in eclipse.ini (before running eclipse) didn't solve the problem
  • removing any of the duplicate lines (-Dosgi.requiredJavaVersion=1.8) didn't solve the problem
  • being a Linux OS (Ubuntu) - there is no javaw executable
  • the Eclipse installation folder path looks like this /home/user/eclipse/jee-neon/eclipse, that dash (-) being the only character that could be considered "special"

My operating system is Ubuntu 16.04, also on 64 bits:

$ uname -i
x86_64
1

There are 1 answers

0
Arduino_Sentinel On

The problem might be caused by this issues, and can be solved with the following solutions.

  • You are using latest eclipse version and unsupported Java version.
  • Make sure you downloaded the 64-bit version of Eclipse as well as 64-bit version of Java software(of which you already have).
  • The -vm option and its value (the path) must be on separate lines. The value must be the full absolute or relative path to the Java executable, not just to the Java home directory. The -vm option must occur before the -vmargs option, since everything after -vmargs is passed directly to the JVM.
  • You have might have special characters like #, !, @ in eclipse installation directory. That is, if your eclipse installation address contains any special characters, then it shows that error. So make sure you don’t have any special characters.

If none solves,then try using Open-JDK