Sun’s Java Runtime Environment adds full Java support to your system.
If you want to use Sun’s Java Runtime Environment, install the following packages:
You will see this window during the setup. If you agree with the license terms, mark the corresponding checkbox and click on “Forward”.
Alternate Way :
sudo aptitude install sun-java6-jre sun-java6-plugin sun-java6-fonts
or Another Way.
Select the Following Packages by Using synapticPackage Manager.
You’ll see this window during the installation – mark the corresponding checkbox and proceed if you agree with the license agreement.
Afterwards check if all went well – open a terminal and enter.
The output should look like this:
java version “1.6.0_03”
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)