I am facing an issue of Eclipse not picking up the VM from the PATH environment variable. I follow the below steps to reproduce the error:
Downloaded the appropriate version of Oracle's JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp
extracted it:
tar zxvf ~/Downloads/jdk-8u5-linux-x64.tar.gz ~/DEV
Added to
PATH
:gedit ~/.bashrc export JAVA_HOME=/home/faizal/DEV/jdk1.8.0_05 export PATH=${PATH}:${JAVA_HOME}/bin
Confirmed
java
is available in PATH by restarting system and executingjava
in random folder in bash:cd ~ java
But when I run Eclipse, I get the error :
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /home/faizal/DEV/eclipse-luna/eclipse/jre/bin/java java in your current PATH
I can make it work only by creating a symbolic link java
in /bin
to point to $JAVA_HOME/bin/java
. Why is Eclipse not working without this symbolic link?