#Open Ubuntu Software Centre
#Edit->Software Sources->Other Software
#Tick "Canonical Partners"
#Update apt repositories
sudo apt-get update
#Remove OpenJDK
sudo apt-get remove openjdk-6-jdk
#Install Sun JDK, JRE, source, plugin, and fonts
sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-source sun-java6-plugin sun-java6-fonts
#Set the default Java implementation to Sun
sudo update-java-alternatives -s java-6-sun
#Edit->Software Sources->Other Software
#Tick "Canonical Partners"
#Update apt repositories
sudo apt-get update
#Remove OpenJDK
sudo apt-get remove openjdk-6-jdk
#Install Sun JDK, JRE, source, plugin, and fonts
sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-source sun-java6-plugin sun-java6-fonts
#Set the default Java implementation to Sun
sudo update-java-alternatives -s java-6-sun