title: Explicitly need to reload the system wide PATH . /etc/profile everytime for JAVAC to work in Ubuntu12.04
body: <p>I have installed JAVA 1.8.0_05 using the following tutorial;</p>
  
  <p><code>http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux</code></p>
  
  <p>After configuring my path in <code>. /etc/profile</code> as shown below I rebooted my Ubuntu</p>
  
  <pre><code>JAVA_HOME=/usr/local/java/jdk1.8.0_05
  
  PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
  
  JRE_HOME=/usr/local/java/jdk1.8.0_05/jre
  
  PATH=$PATH:$HOME/bin:$JRE_HOME/bin
  
  export JAVA_HOME
  
  export JRE_HOME
  
  export PATH
  </code></pre>
  
  <p>Everything works fine up to the point where I give <code>java -version</code> but <code>JAVAC -VERSION</code> is not recognized. Now when I reload the system PATH using <code>. /etc/profile</code>, it works ( I mean JAVAC -version works).</p>
  
  <p>Can you please help me and fix this problem permanently? So that I don't have to reload the system path again and again..</p>
  
  <p>(Note: Without loading the system path every time, my JAVA -version works fine)</p>