I downloaded the Eclipse IDE for Java Developers Linux 32 Bit file from here.
I extracted the file and launched eclipse from the command line.
Instead of Eclipse starting I get this message in a dialog box:
VM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/eclipse
-name Eclipse
--launcher.library /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.1.R36x_v20100810/eclipse_1309.so
-startup /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata 420021
-product org.eclipse.epp.package.java.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx384m
-jar /home/justme/Desktop/FIREFOX_DOWNLOADS/eclipse/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
Any ideas how to fix this? I'm on Ubuntu 8.10 64bit and here's my Java info:
$ java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6.7) Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)
First thing is to ensure you're running the java you think you're running. You can tell from your error output that it's using /usr/bin/java so run
/usr/bin/java -version
to check the version. That java is not necessarily the one on your path - you can find out which one that is with:
which java
Second thing you should probably try is the 64bit version of Eclipse. Everything else you have is 64bit.
Beyond that, I had all sorts of trouble early on with non-Sun JREs. That may not be the case now (or it may have been only specific to me) but it's something else you may want to look at.
On top of that (and probably unrelated to the problem at hand), do you really want to be running Eclipse from within your Firefox download directory. I would move it somewhere else personally.
Related
I just followed the Eclipse websites links to download the latest version for Debian, and after running from the terminal
$ ./eclipse-inst
It goes through the installation process but returns
JVM terminated. Exit code=1
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=#user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
-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=/root/eclipse/java-photon/eclipse
-jar /root/eclipse/java-photon/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
-os linux
-ws gtk
-arch x86_64
-showsplash
-launcher /root/eclipse/java-photon/eclipse/eclipse
-name Eclipse
--launcher.library /root/.p2/pool/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200/eclipse_1705.so
-startup /root/eclipse/java-photon/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
--launcher.appendVmargs
-exitdata eb0026
-product org.eclipse.epp.package.java.product
-vm /usr/lib/jvm/java-9-openjdk-amd64/bin/java
-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
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx1024m
--add-modules=ALL-SYSTEM
-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=/root/eclipse/java-photon/eclipse
-jar /root/eclipse/java-photon/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
I wasn't able to search the error but it may be because the error is so massive that I don't know which parts of it to search for. I tried searching the initial segment of the error and didn't find much that was useful. What I did find indicated editing the eclipse.ini file, so I did that, and it now looks like the following: [Edit: after the advice of a proposed answer I updated the file to look like the following]
-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.appendVmargs
-vm
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-DEFAULT
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
However, after making this edit I see no difference in the error message that the installer brings up.
I believe it's also possible to get Eclipse not by downloading the installer but by using a repo--but as I understand it, this repo usually has a slightly outdated version of Eclipse. I could certainly be wrong, but I believe I've seen advice that it's best to download and use the installer.
When I run java -version it returns
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
When I try to run Eclipse it pops up an error message
An error has occurred. See the log file
/home/bob/.eclipse/org.eclipse.platform_3.8_155965261/configuration/1533437446117.log.
And interestingly, the folder in which the file is supposed to exist, doesn't exist.
This looks like a prerelease build of Java 9, and as such might not support the command line arguments expected in the actual release. Java 9 is current until the end of September, so try the released version if you can.
you have to adjust the eclipse.ini in order to configure Eclipse for Java 9 ...for example:
--launcher.appendVmargs
-vm
/usr/lib/jvm/java-9-openjdk-amd64/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.8
--add-modules=ALL-SYSTEM
or use Java 8 ...
I just installed Eclipse on Linux, but it does not start. What is the problem?
Quite often, Eclipse will not work properly with non-Sun or non-IBM JVMs. These issues are usually related to Blackdown or GCJ. Eclipse has a list of reference platforms that it is tested against which you should try to match against. Try installing one from Sun, IBM, or BEA (eg., Sun JDK 5.0, IBM JDK 5.0, or BEA JRockit 5.0). Version 6 of OpenJDK works too, particularly with Fedora Eclipse.
On Ubuntu 14.04 with oracle JRE JDK installed when trying to run Eclipse I get the following error
JVM terminated. Exit code=13
/usr/bin/java
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/stamatisvergos/Desktop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/stamatisvergos/Desktop/eclipse//plugins/org.eclipse.platform_4.3.2.v20140221-1700/splash.bmp
-launcher /home/stamatisvergos/Desktop/eclipse/eclipse
-name Eclipse
--launcher.library /home/stamatisvergos/Desktop/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20140116-2212/eclipse_1508.so
-startup /home/stamatisvergos/Desktop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.appendVmargs
-exitdata 1bb8017
-product org.eclipse.epp.package.standard.product
-vm /usr/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-jar /home/stamatisvergos/Desktop/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
pls help
Please make sure your are running a 32bit Eclipse only with a 32bit Java JRE installed. and a 64bit Eclipse only with a 64bit Java JRE installed.
Don't try to run a 32bit Eclipse version with a 64bit Java JRE. This will crash in an error like you get(also the other way around will not run).
I am really desperate to install eclipse on ubuntu 12.04 (32 bit). The problem is, eclipse hangs when the splashscreen shown. I run eclipse with -debug option and got following log message :
Start VM: -Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Djava.class.path=/home/iwan/dev-new/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/iwan/dev-new/eclipse//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp
-launcher /home/iwan/dev-new/eclipse/eclipse
-name Eclipse
--launcher.library /home/iwan/dev-new/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120913-144807/eclipse_1502.so
-startup /home/iwan/dev-new/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-product org.eclipse.epp.package.jee.product
-debug
-clean
-clearPersistedState
-vm /usr/lib/jvm/java-6-oracle/jre/bin/../lib/i386/client/libjvm.so
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Dhelp.lucene.tokenizer=standard
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Djava.class.path=/home/iwan/dev-new/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
Install location:
file:/home/iwan/dev-new/eclipse/
Configuration file:
file:/home/iwan/dev-new/eclipse/configuration/config.ini loaded
Configuration location:
file:/home/iwan/dev-new/eclipse/configuration/
Framework located:
file:/home/iwan/dev-new/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Framework classpath:
file:/home/iwan/dev-new/eclipse/plugins/org.eclipse.osgi_3.8.2.v20130124-134944.jar
Splash location:
/home/iwan/dev-new/eclipse//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp
Debug options:
file:/home/iwan/dev-new/eclipse/.options loaded
Time to load bundles: 70
Starting application: 11447
My java version is
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Server VM (build 20.45-b01, mixed mode)
Any idea how to fix this ?
Tried all the options, nothing worked. So I finally figured out the solution:
I removed all JRE installations in my C:\Program Files and C:|Program Files(x86) folders. Installed a new JDK 7 package, copied the fullpath of the JDK7\bin folder and appended it at the end of the "Path" variable under 'Environment variables' of my Windows 7 pc. Then restarted everything, so it worked.
I will do my best to make my situation as clear as possible. I tried googling the error message, but I haven't found any topic regarding exit code=2 anywhere. I only found topics regarding different exit codes, and I'm trying to fix my issue following the advice given there - no luck so far. Also I'm a newbie when it comes to any form of Linux (the distribution I'm using is Ubuntu).
Problem:
My eclipse crashes on launch with following error window popping up:
JVM terminated. Exit code=2
/usr/bin/java
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
-os linux
-ws gtk
-arch x86_64
-showsplash /usr/lib/eclipse//plugins/org.eclipse.platform_3.8.1.dist/splash.bmp
-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 670018
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
-jar /usr/lib/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.dist.jar
There is a big posibility that my problem is related to lack of proper Java version installed.
I suspect this because:
I had eclipse running on my pc two days ago. Yesterday I had to use a web-application which required a specific version of JRE installed. Due to my lack of linux knowledge, I spent a few hours removing my current installations of java JREs and JDKs (so I could install the required version) using multiple guides that I found on the internet (some included commands like sudo apt-get purge java* and other commands including removing, java and *). Today my Eclipse wont launch.
When I run
java -version
it says no such file or directory, but the webpages like
http://www.java.com/en/download/testjava.jsp
http://javatester.org/version.html
do work and say that my java version is
Vendor: Oracle Corporation
Version: Java SE 7 Update 25
Operating System: Linux 3.5.0-34-generic
Java Architecture: 64-bit
installed using this method:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Can someone please guide me how to solve this specific problem? Luckly I haven't made any important projects in my Eclipse yet so I don't mind purging the installation if necessary.
To be completely honest the main reason I need Eclipse for is the Remote Server Explorer option, so if anyone knows a good IDE other than Eclipse that can provide just as good Remote Server Explorer it would be a perfect-fast-temporary solution.
I got the same error message and solved it by starting eclipse with the -clean parameter.
To use the clean parameter:
Edit the eclipse.ini file located in your Eclipse install directory and insert -clean as the first line. Once started, remove the -clean parameter in the eclipse.ini file.
It worked for me...
Set\Change your current jdk path in eclipse.ini.
-vm
C:\Java\JDK\1.8\bin\javaw.exe
Sample Ini file contents:
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Java\JDK\1.8\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
The following environment variables were removed and the Connect client was able to successfully launch:
_JAVA_OPTIONS
JAVA_TOOL_OPTIONS
IBM_JAVA_OPTIONS
The operating system environment variables can be found by:
From Desktop, right-click on My Computer icon-> Properties -> Advanced.
Click the Environment variables button to remove the before-mentioned system environment variables.
In the environment variables check the value of Path variable, it would have reference to the Oracle javapath which would be incorrect java version and may cause the issue. just remove "C:\ProgramData\Oracle\Java\javapath;" from the Path variable and try.
We need to delete all the content in the folder specified in the error msg.Please go through the link below for example JVM Terminated
When i start eclipse(32) in linux (eclipse 64 start correctly )- I see this error:
JVM terminated. Exit code=13
/usr/bin/java
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar /home/devil/bin/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
-os linux
-ws gtk
-arch x86
-showsplash /home/devil/bin/eclipse//plugins/org.eclipse.platform_4.2.1.v201209141800/splash.bmp
-launcher /home/devil/bin/eclipse/eclipse
-name Eclipse
--launcher.library /home/devil/bin/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/eclipse_1502.so
-startup /home/devil/bin/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.overrideVmargs
-exitdata 6d8006
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar /home/devil/bin/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
what does it mean? Help me please
version java - 6 uname :
linux devil-desktop 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
java version :
java version "1.6.0_38" Java(TM) SE Runtime Environment (build 1.6.0_38-b05) Java HotSpot(TM) Server VM (build 20.13-b02, mixed mode)
I faced the similar problem. Though solved it by switching from OpenJDK to SunJDK. Hope it works for you also
ok you are most likely running a 64bit version of java on your mashine.
Your 32-bit version of eclipse refuses to start because it needs to run on a 32-bit version of java.
What you will need to do is get a 32-bit version of java, extract it and tell eclipse where to find it.
Here is a guide I found which describes this procedure in more detail:
http://rachaelandtom.info/node/1485