10
votes

I have a problem with Eclipse. When I try to launch it, I get this error message:

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.2.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.100.dist/eclipse_1407.so
-startup /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.2.0.dist.jar
--launcher.overrideVmargs
-exitdata a8004
-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.2.0.dist.jar 

I have found the same error code but not the same text below, and the proposed solutions didn't work.

Can you help me?

4
What does java --version say? Eclipse doesn't work very well with the Java runtime that comes with most versions of Ubuntu, you need the Sun/Oracle JDK.Daff
@Daff i'm using it with openjdk 7/ubuntu every day and it works flawlessly. I think i didn't have a single crash since a year or so (was using sun jdk before). So maybe update to 7 is enough.soulcheck

4 Answers

23
votes

Usually has to do with incompatible architectures of Eclipse and the JVM. I am betting you got eclipse 32 bit trying to run on 64 bit jvm.

20
votes

As mentioned above, you are most certainly using incompatible JVM. Run the following command to check and set proper JVM:

sudo update-alternatives --config java
0
votes

It is okay that the error message is different, because you are starting eclipse with different parameters and the error message is simply listing the parameters. Thus, the answers provided by google will work, and I think that the information provided in the following pages will be enough.

http://www.ehow.com/how_4784069_terminated-exit-code-error-eclipse.html

Cannot run Eclipse; JVM terminated. Exit code=13

0
votes

I had similar problem. It solved after, I have download JRE from http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1880261.html

and put it in the path of eclipse as shown below -

abc@ubuntu:~/Downloads/eclipse$ ls

about_files

configuration

eclipse.ini

icon.xpm

p2 about.html

dropins

epl-v10.html

jre

plugins artifacts.xml

eclipse

features

notice.html

readme

I hope it helps.