Add function to install java 7 on ubuntu