Java 7 Ubuntu 12.04

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

http://askubuntu.com/questions/309900/installing-java-7-update-25-on-12-04-lts
https://www.digitalocean.com/community/articles/how-to-install-java-on-ubuntu-with-apt-get