I'm having a problem getting eclipse to run on Ubuntu. Here the step to reproduce the issue:
Step 1) Download JDK and unpack it into location:
/opt/java/jdk1.6.0_01
Step 2) Download eclipse and unpack it
tar -xzf eclipse-j2ee-europa-linux-gtk-x86_64.tar.gz
sudo mv eclipse /opt/eclipse
Step 3) Run eclipse:
/opt/eclipse/eclipse
I get the following 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/foo/eclipse/jre/bin/java 'java' in your current PATH
What is wrong here? What exactly the eclipse is looking for?