I guess this is something like this:
Cannot run Eclipse; JVM terminated. Exit code=13
But I do not want to have to completely reinstall Eclipse.
So, since I do not want to reinstall eclipse, I was hoping someone could look at my error message and my eclipse.ini and give me some ideas.
Here is the error message that pops up when I try to run eclipse on my red hat:
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Dorg.eclipse.swt.browser.DefaultType=webkit
-jar /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp
-launcher /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse/eclipse
-name Eclipse
--launcher.library /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/eclipse_1502.so
-startup /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 2c0012
-product org.eclipse.epp.package.jee.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Dorg.eclipse.swt.browser.DefaultType=webkit
-jar /rhel5pdi/apollo/var/env/eclipse-4.2/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
============
Here is the eclipse.ini
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Dorg.eclipse.swt.browser.DefaultType=webkit
I had a similar problem a while back. I eventually found the solution in a post on StackOverflow (will cite when I remember where). The poster mentioned something pertaining to the "eclipse holy trinity". This refers to Eclipse, JRE/JDK, and OS all being of the same architecture. So 32bit/32bit/32bit or 64bit/64bit/64bit.
Exit code 13 is (always) due to a bit-ness mismatch between Eclipse and the JVM it's running in; they must both be either 32-bit or 64-bit. Many people run into trouble because they think they're running Eclipse in a specific JVM but have not properly specified it in eclipse.ini and so Eclipse picks up the incorrect one.
Read the eclipse.ini wiki page carefully to learn how to specify the full path to a JVM (preferably a JDK) that you want Eclipse to run in. I repeat: read the instructions fully and carefully as the format is very particular.
Alternatively, you can use the Eclipse Installer which automatically locates an appropriate JVM on your machine, or directs you where to get one if it can't find one. See https://stackoverflow.com/a/31885692/639520
Related
Premise:
I am constrained to work on a very old Ubuntu 10.04LTS(aka Lucid Lynx)
After have downloaded (now) Oracle's most used 1.8 Java(and latest 1.8 release: 1.8.0_172) decompressed it and set it correctly in PATH in bash i downloaded and decompressed in $ECLIPSE_HOME the latest runnable(cause eclipse releases >= Oxygen require a newer gtk library that actually can't have in that PC) eclipse for my machine: eclipse-java-neon-3-linux-gtk-x86_64.tar.gz
When i tried to execute eclipse instead of a running instance i got that error dialog message
JVM terminated. Exit code=1
/usr/bin/java
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.platform_4.6.3.v20170301-0400/splash.bmp
-launcher /home/harrykar/Java8/eclipseJavaNeon64/eclipse
-name Eclipse
--launcher.library /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740/eclipse_1618.so
-startup /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.appendVmargs
-exitdata 6e8037
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
-jar /home/harrykar/Java8/eclipseJavaNeon64//plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
Anyone has a clue?
TIA
Best Regards
Harry G.T. Kar
All that time i was focused to search in Web for a solution (but without luck) and not dig into the eclipse.ini file assumed it correct.
My eclipse.ini after eclipse installation looked like that:
-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
I notice here missed the path to java(JDK) actually in use(don't forget i used a custom installation of java - in my home directory - not that provided from the Ubuntu system in /usr/bin/ as the error message correctly reported)
So the solution was simply to add 2 lines in the eclipse.ini(i.e. the custom path to JDK).
Beware it's important to write these lines before the -vmargs as shown below (or also delete -vmargs if not use it)
-vm
/home/harrykar/Java8/jdk1.8.0_172/bin
-vmargs
And that's it eclipse now works as intended
Best Regards
Harry G.T. Kar
I have been trying to install Eclipse on my Windows 10 Dell PC.
Here's how my eclipse.ini file looks like originally:-
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.551.v20171108-1834
-product
org.eclipse.epp.package.java.product
-showsplash
org.eclipse.epp.package.common
--launcher.defaultAction
openFile
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
I have been trying to do the following:-
Changed version from 1.8 to 1.7 as I have installed Java 1.7
Added this before -vmargs
-vm
C:\Program Files\Java\jdk1.7.0_80\bin\javaw.exe
Also changing -Xmx1024m to -Xmx512m
But still some or the other error occurs and I am totally clueless about what is happening
I get errors like
Cannot create Java Virtual Machine
or
An error has occurred. See log \some\path in configuration folder whose content I am unable to understand
I don't have any workspace where I can delete .metadata/.plugins some file path to something call .snap where I can delete that
Also, tried -clean command, that doesn't works too.
I would start with cleaning your system, that means uninstall Java completely with all of its versions. Either that, or try to upload that log you cannot understand, maybe some of us will and it will shine a light on your situation.
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.
I just downloaded eclipse, and when I open it I am getting an error "Alert Failed to create the Java Virtual Machine".
I have tried solutions that others have posted here but none seem to work. I also have Java version 1.7.
Here is my eclipse.ini file as well.
Thanks in advance for any help!
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
I would add an explicite path to a compatible Java App:
-vm
/Library/Java/JavaVirtualMachines/jdk1.7.0_xx.jdk/Contents/Home/bin/java
-vmwargs
...
You must add the -vm lines before the existing -vmargs lines.
Modify the path to match your installed java, you can run java_home to find out. It needs to match the architecture of the Eclipse native parts.
I found a solution. And it has been solved on my computer
if you are using mac and JDK 11+ with STS or Eclipse follow these steps:
step1. rename libjli.dylib
cd /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/MacOS
sudo mv libjli.dylib libjli.dylib.bak
step2. create linked file for libjli.dylib
sudo ln -s ../Home/lib/libjli.dylib libjli.dylib
step3. restart Eclipse.
This should be a bug for Eclipse and should be fixed in the next version of Eclipse.
I am trying to download Eclipse to start making some apps. I downloaded the launcher from:
https://developer.android.com/sdk/index.html#download
I then moved the Eclipse file over to program x86.
I also updated the Eclipse file so that it changes the directory where it finds my JRE file. I will attach the file code I have so far.
Eclipse and Java are both 64
Any help will be amazing!
/-------------------------------------------------------------------------------
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
-vm
C:\Program Files (x86)\Java\jre7\bin\java.exe
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
/-------------------------------------------------------------------------
Thank you!
Can you post your eclipse.ini file?
It may just be the way the error shows (and not how it is written in the eclipse.ini file), but there is text in Eclipse.ini (Specifying the JVM) that says the following:
The -vm option and its value (the path) must be on separate lines.
The value must be the full absolute 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
#Developer SuRu it is right
And this link explain easily how can do this
Java was started but returned exit code=13 [FIXED]
Or see this Answer :
Add the java 32-bit version path to AptanaStudio3.ini