Eclipse does not start (Ubuntu): JVM is complete. Exit Code = 2

  • I install ubuntu 14.04 LTS (64 bit)
  • After that install Eclipse Luno Standard for 64-bit
  • Install Jdk and follow all the steps to configure jdk using the following link,

    http://www.wikihow.com/Install-Oracle-Java-JDK-on-Ubuntu-Linux

  • Then, after I turned on the launch of my eclipse, he gave me the following error:

    VM is complete. Exit Code = 2

    /usr/bin/java -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -jar /home/eheuristic/Ecclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415- 2008.jar -os linux -ws gtk -arch x86_64 -showsplash /home/eheuristic/Ecclipse/eclipse//plugins/org.eclipse.platform_4.4.0.v20140925- 0400/splash.bmp -launcher /home/eheuristic/Ecclipse/eclipse/eclipse -name Eclipse --launcher.library /home/eheuristic/Ecclipse/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1. 200.v20140603-1326/eclipse_1605.so -startup /home/eheuristic/Ecclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar --launcher.appendVmargs -exitdata 208017 -product org.eclipse.epp.package.java.product -vm /usr/bin/java -vmargs -Dosgi.requiredJavaVersion=1.6 -XX:MaxPermSize=256m -Xms256m -Xmx1024m -jar /home/eheuristic/Ecclipse/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar 

I try to solve the environment variable setting so much, but I canโ€™t help me suggest how to solve it.

+5
source share
6 answers

I find my stupid solution

I am trying to install jdk which supports 32 bit version.

I am loading a new jdk1.8.0_25 for 64-bit and following the step I have solutions.

0
source

Firstly, I highly recommend you use webupd8 ppa

 sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer 

Then to install it

 sudo update-java-alternatives -s java-8-oracle 

The advantage is the ease of updates.

+17
source

write to eclipse.in at the top of the file

 -startu -vm /usr/local/jdk/jre/bin 

change the path according to your system

+1
source

There was the same mistake. Solved it:

sudo update-alternatives --config java

I started "using / usr / lib / jvm / java-8-openjdk-amd64 / jre / bin / java to provide / usr / bin / java (java) in manual mode" - this was option 4 and it worked fine.

I am using Luna Service Release 2 (4.4.2).

Hope this helps someone.

+1
source

I know for sure how to solve your problem, go to the search and put it in the environment, a prompt will appear and ask you to "change the environment variables for your account", click on it, and a window will appear. there will be current paths that run on top (you must have a version of jdk running on a mine equal to 1.8), and paths will also be selected at the bottom. select (at the bottom) the path to java and delete it, then click "OK." he should work

0
source

I had the same problem when trying to run Eclipse and Android Studio on Ubuntu with Java 9. Solution. Install Java 8

  sudo apt-get install oracle-java8-installer 
and set it as default
  sudo apt-get install oracle-java8-set-default 

and voilร .

0
source

Source: https://habr.com/ru/post/990043/


All Articles