title: setting java_home weird error
body: <p>I have an ubuntu machine.. </p>
  
  <p>In my ~/.bashrc I have set java_home as</p>
  
  <pre><code>export JAVA_HOME=/usr/java/jdk1.7.0_04/bin/java
  export PATH=$JAVA_HOME/bin:$PATH
  </code></pre>
  
  <p>but still when i do </p>
  
  <pre><code>$which java
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>/usr/bin/java
  </code></pre>
  
  <p>what can be the reason?
  Any help would be greatly appreciated
  Thanks</p>