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
to1.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