title: Needing to set CLASSPATH well
body: <p>I'm new in java and faced aproblem in PATH . I want to set classpath of java and want someone to review what i did to know what's the exact problem </p>
  
  <p>java -version </p>
  
  <pre><code>java version "1.6.0_38"
  JAVA(TM) SE Runtime Environment (build 1.6.0_38-b05)
  Java Hotspot(TM) Client VM (build 20.13-b02,mixed mode, sharing)
  </code></pre>
  
  <p>javac -version</p>
  
  <pre><code>javac 1.6.0_38
  </code></pre>
  
  <p>whereis java</p>
  
  <pre><code>/usr/bin/java  /etc/java  /usr/bin/X11/java   /usr/share/java
  </code></pre>
  
  <p>which java </p>
  
  <pre><code>/usr/bin/java
  </code></pre>
  
  <p>echo $CLASSPATH </p>
  
  <pre><code>empty 
  </code></pre>
  
  <p>i edited in <code>/etc/profile</code> this </p>
  
  <pre><code>JAVA_HOME=/usr/lib/jvm/jdk1.6.0_38
  PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
  export JAVA_HOME
  export JRE_HOME
  export PATH
  </code></pre>
  
  <p>and i edited in <code>.bashrc</code> this </p>
  
  <pre><code>PATH=/usr/lib/jvm/jdk1.6.0_38/bin:$PATH
  export PATH
  </code></pre>
  
  <p>I'm on ubuntu12.04 </p>