title: Getting two values for JAVA_HOME
body: <p>I am getting this weird thing. My JAVA_HOME is set to /usr/lib/jvm/java-6-openjdk-amd64. When I echo the variable I get the same result. But when I was using ant to build a project I am getting this error.</p>
  
  <pre><code>Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK.
  It is currently set to "/usr/lib/jvm/java-6-openjdk-amd64/jre"
  </code></pre>
  
  <p>How is this possible? I installed jdk 6 downloaded from oracle's website but then I renamed it.
  Script is very long. So I am giving pastebin link: <a href="http://pastebin.com/mgJ1VbZ8" rel="nofollow">http://pastebin.com/mgJ1VbZ8</a></p>