install java 7 jre

1
2
3
4
5
6
7
wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=64145 #download jre
tar xvfz jre-7u5-linux-i586.tar.gz
sudo mv jre1.7.0_05/ /usr/lib/jvm/
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jre1.7.0_05/bin/java 1
sudo update-alternatives --config java
java -version #check