title: How to install jdk7 on CentOS?
body: <p>I'm trying to install jdk7 on my CentOS 6.5 machine. Actually, I thought I already did this 6 months ago but when I type <code>java -version</code> I see <code>javac 1.6.0_30</code>.</p>
  
  <p>I've downloaded jdk-7u25-linux-x64.tar.gz, verified checksum, then extracted to <code>/home/username/java/jdk7u25/jdk1.7.0_25</code>.</p>
  
  <p>Then I edited my <code>.bash_profile</code> file, which includes:</p>
  
  <pre><code>...
  export JAVA_PATH=$JAVA_HOME
  export PATH=$PATH:$JAVA_HOME/bin
  ...
  export PATH=$PATH:$JRE_HOME/bin
  </code></pre>
  
  <p>when I type <code>source .bash_profile</code> then <code>java -version</code> I still see the same 1.6 version noted above. Anyone know what else needs to be done?</p>