http://unix.stackexchange.com/questions/43150/how-to-completely-remove-java-6-and-install-java-jdk-7-on-linux-mint-13
# Must install 7 first or else when uninstalling six, it will try to install a bunch of replacement gcj stuff.
sudo apt-get install openjdk-7-jdk
sudo apt-get remove openjdk-6-jre
sudo apt-get remove openjdk-6-jre-lib