Cannot start Eclipse on Ubuntu exit code = 13 - java

I cannot seem to get Eclipse running on my Ubuntu 18.04.1 LTS machine. I've installed, removed, reinstalled, purged, and reinstalled Eclipse to no avail.
I installed Eclipse using the Ubuntu repository:
# apt-get install eclipse
Some information about my machine:
$ uname -a
Linux $HOSTNAME 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ /usr/bin/java -version
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)
Attempting to run Eclipse:
$ /usr/lib/eclipse/eclipse
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
An error has occurred. See the log file
/home/$USER/.eclipse/155965261/configuration/1539424551911.log
A window pops up informing me
JVM terminated. Exit code=13
/usr/bin/java
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=256m
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /usr/lib/eclipse/eclipse
-name Eclipse
--launcher.library /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist/eclipse_1503.so
-startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.overrideVmargs
-exitdata 64801c
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-XX:MaxPermSize=256m
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
The log file
!SESSION Sat Oct 13 02:55:51 MST 2018
------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2018-10-13 02:55:51.934
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.RuntimeException: Could not find framework
at org.eclipse.equinox.launcher.Main.getBootPath(Main.java:985)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:564)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
I've read similar questions which instructed me to check the bitness, I am running a 64-bit OS with a 64-bit version of Java JDK, but I cannot seem to figure out how to check if my Eclipse installation is 64 or 32 bit (although I cannot imagine why apt-get would install a 32-bit package on my clearly 64-bit computer). Other questions suggested to check my eclipse.ini file, but I did not modify it from the default:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.dist
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
What can I do to further troubleshoot my installation?

Related

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.

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 won't run - JVM Terminated, Ubuntu 16.04

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.

Cannot run carrot2 workbench 3.10.2 in Kubuntu 14.04

I have Java 1.7.0...
$ java -version
java version "1.7.0_75"
Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
Java HotSpot(TM) Server VM (build 24.75-b04, mixed mode)
And Ubuntu 14.04.2 LTS, running KDE (Kubuntu). When I run ./carrot2-workbench-ubuntu I get...
Java HotSpot(TM) Server VM warning: You have loaded library /var/downloads/a/packages/carrot2-workbench-3.10.2/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
2015-08-03 20:01:08,984 INFO org.carrot2.workbench.core.WorkbenchCorePlugin: Changed instanceLocation to: file:/var/downloads/a/packages/carrot2-workbench-3.10.2/workspace/
2015-08-03 20:01:09,223 INFO org.carrot2.util.xslt.TemplatesPool: XSLT transformer factory: com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
After that I get a pop-up window that says the following:
JVM terminated. Exit code=13
/usr/lib/jvm/jdk1.7.0/bin/java
-Xms256m
-Xmx512m
-Dorg.eclipse.update.reconcile=false
-Dlog4j.configuration=log4j-workbench.xml
-jar /var/downloads/a/packages/carrot2-workbench-3.10.2/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /var/downloads/a/packages/carrot2-workbench-3.10.2/carrot2-workbench
-name Carrot2-workbench
--launcher.library /var/downloads/a/packages/carrot2-workbench-3.10.2/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/eclipse_1605.so
-startup /var/downloads/a/packages/carrot2-workbench-3.10.2/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.overrideVmargs
-exitdata 1af001e
-data #noDefault
-vm /usr/lib/jvm/jdk1.7.0/bin/java
-vmargs
-Xms256m
-Xmx512m
-Dorg.eclipse.update.reconcile=false
-Dlog4j.configuration=log4j-workbench.xml
-jar /var/downloads/a/packages/carrot2-workbench-3.10.2/plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
Can someone please help me decipher what's wrong? Thanks.
Thanks for reporting the issue (although the mailing list would be more convenient). I'll look into this.
http://issues.carrot2.org/browse/CARROT-1108

Eclipse Download on Ubuntu error

I just downloaded Ubuntu 13.04 on my laptop, and I'm trying to run Eclipse. When I downloaded it and tried to run it, it told me to install JRE, so I did. But now it's showing this error:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/sam/Eclipse/eclipse//plugin/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/sam/Eclipse/eclipse//plugins/org.eclipse.platform_4.3.1.v20130911-1000/splash.bmp
-launcher /home/sam/Eclipse/eclipse/eclipse
-name Eclipse
--launcher.library /home/sam/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20130807-1835/eclipse_1506.so
-startup /home/sam/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.appendVmargs
-exitdata e5800c
-product org.eclipse.epp.package.standard.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/sam/Eclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
I'm very new to Ubuntu and I'm not sure at all what is going on. Did something install incorrectly? Is something not installed?
Thanks in advance!
Looks like you are trying to run the 32 bit version of Eclipse with a 64 bit Java. You need to use the 64 bit version of Eclipse.
I tried to install Eclipse Standard 4.3.1 (from http://www.eclipse.org/downloads) on ArchLinux.
Here is the version of my java installation:
$ java -version
java version "1.7.0_40"
OpenJDK Runtime Environment (IcedTea 2.4.2) (ArchLinux build 7.u40_2.4.2-1-x86_64)
OpenJDK 64-Bit Server VM (build 24.0-b56, mixed mode)
...and got exactly the same error.

Categories

Resources