title: Setting up eclipse on ubuntu
body: <p>I have a small problem with Eclipse on my Ubuntu machine. I installed JDK, set JAVA_HOME and PATH variables, all seems correct, but eclipse refuses to launch and throws an error:</p>
  
  <blockquote>
    <p>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: /opt/eclipse/jre/bin/java
    java in your current PATH</p>
  </blockquote>
  
  <p>have no clue what's the problem. help please.</p>
  
  <p>note:</p>
  
  <p>I am able to run java and javac in terminal.</p>