Install Java Runtime Environment (JRE) in Ubuntu Hardy

Installing the Java Runtime Environment

First you need to check multiverse repository enabled or not after that open a terminal window. Since you are going to be installing the JRE and the web browser plug-in, you’ll be using the following command from a terminal

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

Terminal output:
The following NEW packages will be installed:
java-common odbcinst1debian1 sun-java6-bin sun-java6-fonts sun-java6-jre
sun-java6-plugin unixodbc

Once it downloads the packages and begins the installation, you’ll get a screen that contains the Sun Operating System Distributor License for Java and hit Enter to continue. You’ll see a dialog that asks you if you agree with the DLJ license terms. Select Yes, and hit Enter; the JRE will finish installing. ( Press TAB untill Ok Button will turn RED and Hit Enter )

Testing Java Runtime Environment

You’ll want to confirm that your system is configured properly for Sun’s JRE.

check that the JRE is properly installed by running the following command from a terminal.

java -version

You should get similar output

java version “1.6.0_06”
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

Testing Java Plugin for Firefox

open Firefox and typing about:plugins in the address bar and check for java plugin

7 thoughts on “Install Java Runtime Environment (JRE) in Ubuntu Hardy

  1. Pingback: Install FreeMind In Ubuntu Hardy | netstat -an | grep -i listen

  2. Chris Weiss

    “Package sun-java6-plugin is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package sun-java6-plugin has no installation candidate”


Leave a Reply

Your email address will not be published. Required fields are marked *