title: JAVA_HOME in Ubuntu
body: <p>i have installed jdk1.6 with netbeans 6.9 in my ubuntu10.10
  it works fine ,i then try eclipse but it shows me the jdk or jre kit must be available to run eclipse.
  i set  JAVA_HOME AND PATH IN MY /etc/enviroment file </p>
  
  <pre><code>`PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr`/games:$PATH:$JAVA_HOME:$JAVA_HOME/bin"
  
  JAVA_HOME="/home/amit/jdk1.6.0_24"
  CLASSPATH="/home/amit/jdk1.6.0_24/lib:."
  </code></pre>
  
  <p>but it doesn,t work
  <code>java -version</code> command did not work
  <code>echo $java _ home</code> works
  i also restart my pc.
  i also change it</p>
  
  <pre><code>JAVA_HOME="/home/amit/jdk1.6.0_24"
  `PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr`/games:$PATH:$JAVA_HOME:$JAVA_HOME/bin"
  
  CLASSPATH="/home/amit/jdk1.6.0_24/lib:."
  </code></pre>
  
  <p>but it still did not work
  thanks in advance</p>