java jdk7

http://www.oracle.com/technetwork/java/javase/downloads/index.html

# mkdir -p /opt/java
# cd /opt/java/
# wget http://download.oracle.com/otn-pub/java/jdk/7u25-b15/jdk-7u25-linux-x64.tar.gz
# tar xvzf jdk-7u25-linux-x64.tar.gz
# rm -rf jdk-7u25-linux-x64.tar.gz
# nano /etc/profile.d/java.sh

export JAVA_HOME=/opt/java/jdk1.7.0_25
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

# exit
$ exit

login again

$ java -version
$ javac -version