for 10.10:
sudo add-apt-repository"deb http://archive.canonical.com/ maverick partner"for 11.04
sudo add-apt-repository"deb http://archive.canonical.com/ natty partner"Continue with:
sudo apt-get updatesudo apt-get install sun-java6-jre sun-java6-plugin
Use as default:
sudo update-alternatives --config javaInstalling JDK:
sudo apt-get install sun-java6-jdkSource code (to be used in development):
sudo apt-get install sun-java6-sourceSource of these instructions: