卸载:
sudo apt-get purge openjdk*
sudo apt-get purge oracle-java7-installer*
安装:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
参考:
http://stackoverflow.com/questions/16263556/installing-java7-on-ubuntu
http://www.docin.com/p-555035567.html