Eclipse won't run - JVM Terminated, Ubuntu 16.04 - java

Please note:
I've checked other threads -
Cannot run Eclipse; JVM terminated. Exit code=13
Eclipse does not launch (Ubuntu) : JVM terminated. Exit code=13
Which didn't seem to help in my case.
I've installed oracle java 8 package, java -version shows:
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Eclipse was installed with 64-bit installer wizard from official website.
When trying to open eclipse i get the following:
JVM terminated. Exit code=13
/usr/lib/jvm/java-8-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/adiel/eclipse/cpp-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/adiel/eclipse/cpp-neon/eclipse/eclipse
-name Eclipse
--launcher.library /home/adiel/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
-startup /home/adiel/eclipse/cpp-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.appendVmargs
-exitdata 73000a
-product org.eclipse.epp.package.cpp.product
-vm /usr/lib/jvm/java-8-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/
-jar /home/adiel/eclipse/cpp-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
My eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
/home/adiel/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-8-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/
Ubuntu 16.04 LTS . Any suggestions? Thanks

Solution found.
Removed java-8-install using sudo apt-get purge,
Installed openjdk-8-jdk instead, then reinstalled eclipse package through their installer.
Now eclipse is working.

Related

Error while Installing Eclipse on a Linux Hosted Server - JVM Terminated Exit Code =2

I am new to Java and trying to install Eclipse BIRT on a hosted linux server. I have executed the below commands using putty.
Step 1. Downloaded and extracted eclipse-reporting-neon-R-linux-gtk-x86_64.tar.gz file to /home/xxone/eclipse in cpanel.
Step2. Downloaded jdk-8u241-linux-i586.tar.gz and extracted into /home/xxone/jdk1.8.0_241/
Step 3: [Set the Java home and path varaibles][1]
export JAVA_HOME=/home/xxone/jdk1.8.0_241/
export PATH=$JAVA_HOME/bin:$PATH
Step 4: set -vm arguments in eclipse.ini as below
-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.reporting.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
/home/xxone/jdk1.8.0_241/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
Step 5: when i try to run the eclipse file through putty, I am getting the below error.
[root#cloud eclipse]# ./eclipse
Eclipse:
GTK+ Version Check
Eclipse:
JVM terminated. Exit code=2
/home/xxone/jdk1.8.0_241/bin/java
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v2016 0318-1642.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/xxone/eclipse//plugins/org.eclipse.platform_4.6.0.v2016060 6-1100/splash.bmp
-launcher /home/xxone/eclipse/eclipse
-name Eclipse
--launcher.library /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher .gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
-startup /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v 20160318-1642.jar
--launcher.appendVmargs
-exitdata 40001
-product org.eclipse.epp.package.reporting.product
-vm /home/xxone/jdk1.8.0_241/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/xxone/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v2016 0318-1642.jar
Any help is much appreciated.
Thanks.

Unexpected JVM terminated. Exit code=13 Error while starting STS 3.9?

Problem
I was able to start STS yesterday but unexpected error is coming today.
JVM terminated. Exit code=13
/home/jalaj/Java/Java8/jre1.8.0_144/bin/java
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Dosgi.module.lock.timeout=10
-Xverify:none
-Xmx1200m
-jar /home/jalaj/Downloads/sts-bundle/sts-3.9.0.RELEASE//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/jalaj/Downloads/sts-bundle/sts-3.9.0.RELEASE/STS
-name STS
--launcher.library /home/jalaj/Downloads/sts-bundle/sts-3.9.0.RELEASE//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133/eclipse_1624.so
-startup /home/jalaj/Downloads/sts-bundle/sts-3.9.0.RELEASE//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.overrideVmargs
-exitdata 378017
-product org.springsource.sts.ide
-vm /home/jalaj/Java/Java8/jre1.8.0_144/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Dosgi.module.lock.timeout=10
-Xverify:none
-Xmx1200m
-jar /home/jalaj/Downloads/sts-bundle/sts-3.9.0.RELEASE//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
My Analysis
1)I have checked my system JAVA_HOME and JRE_HOME path,javac and java version and have made changes in STS.ini after it failed to start but still I am not getting any result.
echo $JAVA_HOME
/home/jalaj/Java/Java8/jdk1.8.0_144
echo $JRE_HOME
/home/jalaj/Java/Java8/jre1.8.0_144
jalaj#jalaj-X540YA:~$ javac -version
javac 1.8.0_144
jalaj#jalaj-X540YA:~$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) Server VM (build 25.144-b01, mixed mode)
My STS.ini file
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.500.v20170531-1133
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-vm
/home/jalaj/Java/Java8/jre1.8.0_144/bin
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Dosgi.module.lock.timeout=10
-Xverify:none
-Xmx1200m
Can anyone guide me how to resolve this issue.I have researched various threads about this error but couldn't find any solution.
It looks like your JAVA_HOME points to a 32bit JDK installation whereas the STS installation that you are trying to run is a 64bit installation. Make sure you have a 64bit JDK installed and configured.
In addition to that I also vaguely remember that you have the -vm option in the ini file as the first one in that file. But I am not sure if that is really related to the problem.

Eclipse doesn't launch (JVM terminated. Exit code=1)

This is my java version(on Debian 8 Jessie):
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
And after successful installation, I get this message and program doesn't launch:
JVM terminated. Exit code=1
/opt/jdk/jdk1.8/jre/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/
-Duser.dir=/home/m/eclipse/java-neon/eclipse
-jar /home/m/eclipse/java-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /home/m/eclipse/java-neon/eclipse/eclipse
-name Eclipse
--launcher.library /home/m/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444/eclipse_1617.so
-startup /home/m/eclipse/java-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.appendVmargs
-exitdata 2a5001b
-product org.eclipse.epp.package.java.product
-vm /opt/jdk/jdk1.8/jre/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/
-Duser.dir=/home/m/eclipse/java-neon/eclipse
-jar /home/m/eclipse/java-neon/eclipse//plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
I have searched and tested many methods (for example installing java8-oracle) but it doesn't work at all!
Do not refer to /opt/jdk/jdk1.8/jre/bin/java directly. As it's a JDK, you should be using /opt/jdk/jdk1.8/bin/java.
Not sure if it is only issue, but UseStringDeduplication is available only from 8u20, while you are using 8u05. Please update java to latest available version - in addition to some new features, there is also a LOT of bugs fixes form early java 8 version, you don't want to be on receiving end of them.
I have recently had a similar problem for a version of Eclipse that has been running fine for years. I cut the -Xms (initial Java heap size) in half and Eclipse starts up again. I will wait along with you for a more intelligent solution.

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

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

Eclipse Luna craches with JVM terminated.exit code=1

I'm using eclipse Luna on Xubuntu 14.10, it worked well.
when i launch eclipse sometimes it crached, sometimes it worked well at the first time then it crached suddenly with this error.
JVM terminated. Exit code=1
/usr/lib/jvm/java-7-openjdk-amd64/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /usr/local/eclipse-luna/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /usr/local/eclipse-luna/eclipse//plugins/org.eclipse.platform_4.4.0.v20140925-0400/splash.bmp
-launcher /usr/local/eclipse-luna/eclipse/eclipse
-name Eclipse
--launcher.library /usr/local/eclipse-luna/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so
-startup /usr/local/eclipse-luna/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.appendVmargs
-exitdata 20e801f
-product org.eclipse.epp.package.jee.product
-vm /usr/lib/jvm/java-7-openjdk-amd64/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /usr/local/eclipse-luna/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
there is my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
/usr/lib/jvm/java-7-openjdk-amd64/bin/java
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
i used openjdk7, when i typed java -version,
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-0ubuntu1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
My Eclipse's version is the the good one, the 64 bits
I looked at the others posts which treat the same probleme but the solutions which proposed didn't helpe me.
what can I do please. Any thoughts?
Thank you for advance.
There was a Xubuntu Bug, i found a solution from this link,
Bug 11893 - Eclipse crashes frequently with Xfce 4.12
There were two choices :
use another windows manager like openbox for exemple.
try to downgrade the xfwm4 (Xubuntu 15.04), but i coudn't then i used openbox, and eclipse work well.
i hope that can help someone.

Categories

Resources