Configure eclipse on ubuntu

I have a little problem with Eclipse on my Ubuntu machine. I installed the JDK, set the JAVA_HOME and PATH variables, everything seems to be correct, but eclipse refuses to start and throws an error:

The Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available to run Eclipse. The Java virtual machine was not found after searching in the following places: / opt / eclipse / jre / bin / java java in your current PATH

don't have a clue what the problem is. help me please.

Note:

I can run java and javac in terminal.

+5
source share
7 answers

You probably need to configure JAVA_HOME env var as follows:

export JAVA_HOME=/apps/java/jdk1.6.0_13

+2

:

ubuntu:~$ sudo apt-get install default-jre
+11

, JDK , :

1)open eclipse.ini file with text editor.
2)copy your jdk path by using -vm command (vm and your path should not be in same line)
eg:
-vm        
/usr/lib/java/jdk1.7.0_75/jre/bin/java 
3)-vm should be placed before -vmargs in eclipse.ini file.

99% ,

+11

/usr/bin/java java ( ).

sudo ln -s /path/to/jre*/bin/java /usr/bin/java
+4
  • eclipse.ini
  • -vm USR/Library/JVM/jdk1.8.x_xx/JRE//Java -vmarg

  • ...
+1

, eclipse java /usr/bin, java- , ,

0

jre jdks . 1.6 , eclipse 1.7. elcipse.ini, jvm eclipse:

-vm
/usr/lib/jvm/jdk1.7_latest/bin/java

, . , jdk1.7_latest Java 7 jdk.

, - .

0

All Articles