How to install java run time in ubuntu 10.10 Maverick Meerkat

If you want to install Java run time in Ubuntu 10.10 Maverick meerkat.

 

sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6