How to install jre on Ubuntu 10.10


This is a problem that faced me on installing a new version of ubuntu 10.10 , I think a big number of ubuntu users have the same problem .

How to install java ( jre and jdk ) on Ubuntu

I followed the instructions on this page from and it worked successfully .

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

I hope it will help anyone .