title: Eclipse cannot find Java on Ubuntu
body: <p>Java is properly installed in my Ubuntu 12.04 and the PATH variable is set in the <code>.bashrc</code> file.</p>
  
  <p>The command <code>java -version</code> gives an expected output.</p>
  
  <p>But when I try to start Eclipse, it complains as JDK not found.</p>
  
  <p><img src="https://i.stack.imgur.com/YtAhG.png" alt="enter image description here"></p>