Install Java in Ubuntu 9.04 'Jaunty Jackalope'

Java (programming language)

To install Java Runtime Environment in Ubuntu do this.

Open the terminal and run the following command:

 sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

Soon you will come across Sun Operating System Distributor License for Java screen, hit Enter.

Next you will come across the DLJ licence terms, select 'yes' and hit Enter.

Ubuntu will now install JRE.