title: How can Eclipse find JDK in Linux?
body: <p>I've installed Eclipse and jdk manually. My JAVA_HOME is set, and I am able to run the <em>java -version</em> and <em>javac -version</em> commands, but when I try to run Eclipse, it shows the following message:</p>
  
  <pre><code>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/$USER/development/eclipse/jre/bin/java
  java in your current PATH
  </code></pre>
  
  <p>How can I fix this?</p>
  
  <p>Distro:</p>
  
  <pre><code>Ubuntu 12.0.4 64 bits.
  </code></pre>
  
  <p>Java:</p>
  
  <pre><code>java version "1.6.0_45"
  Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
  Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)
  </code></pre>
  
  <p>$JAVA_HOME:</p>
  
  <pre><code>/usr/lib/jvm/jdk1.6.0_45
  </code></pre>
  
  <p>My $PATH contains the following:</p>
  
  <pre><code>/usr/lib/jvm/jdk1.6.0_45/bin
  </code></pre>
  
  <p>Thank you for the help</p>