title: Why can't I set the JAVA_HOME VARIABLE in Ubuntu 12.04?
body: <p>I am having difficulties installing the JDK in Ubuntu, I can't manage to make it work. Could somebody let me know what I am doing wrong?</p>
  <p>1- I Downloaded jdk-6u35-linux-i586.bin from oracle's web site</p>
  <p>2- I moved the downloaded file to <em>home/</em></p>
  <p>3- I transformed it into an executable using <em>chmod +x jdk-6u35-linux-i586.bin</em></p>
  <p>4- I executed it using sudo ./jdk1.6.0_35</p>
  <p>5- I moved the folder with the jdk to /usr/local using
  <em>mv jdk1.6.0_35/ /usr/local/</em></p>
  <p>6- I opened the .bashrc with the &quot;kate&quot; editor and i added the following lines(This file was completely empty by the way)</p>
  <blockquote>
  <p>export JAVA_HOME=/usr/local/jdk1.6.0_35/</p>
  <p>export PATH=$JAVA_HOME/bin:$PATH</p>
  </blockquote>
  <p>7- I typed java -version but didn't work. This is what the console displays</p>
  <p><img src="https://i.stack.imgur.com/1juVS.jpg" alt="enter image description here" /></p>