title: JDK not recognized after installation in Ubuntu 12.10
body: <p>I did these steps without error:</p>
  
  <ol>
  <li><p>JDK path : </p>
  
  <pre><code>Downloads/jdk-6u37-linux-x64.bin
  </code></pre></li>
  <li><p>Commands in Terminal:</p>
  
  <pre><code>mkdir Programs
  cd Programs
  bash ../Downloads/jdk-6u37-linux-x64.bin
  ln -s jdk-6u37-linux-x64 jdk
  </code></pre></li>
  <li><p>Set JAVA_HOME and Path:</p>
  
  <p>I added the following lines to the end of the <code>.bashrc</code> file:</p>
  
  <pre><code>export JAVA_HOME=$Home/Programs/jdk
  export PATH=:$JAVA_HOME/bin:$PATH
  </code></pre></li>
  </ol>
  
  <hr>
  
  <p>This is the result of executing the command <code>echo $JAVA_HOME</code>:</p>
  
  <pre><code>/Programs/jdk
  </code></pre>
  
  <p>This is the result of executing the command <code>echo $PATH</code>:</p>
  
  <pre><code>:/Programs/jdk/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games1
  </code></pre>
  
  <hr>
  
  <p>And the problem is:<br>
  This is the result of executing the command </p>
  
  <pre><code>$ java -version
  
  The program 'java' can be found in the following packages:
   * default-jre
   * gcj-4.6-jre-headless
   * gcj-4.7-jre-headless
   * openjdk-7-jre-headless
   * openjdk-6-jre-headless
  Try: sudo apt-get install 
  </code></pre>