My Journal



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

    • G. Patch
      Jun 30, 2008 at 1:03 PM / Reply

      Works wonderfully–thank you!

    • Chris Weiss
      Jul 13, 2008 at 2:02 PM / Reply

      “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”

    • admin
      Jul 13, 2008 at 11:40 PM / Reply

      To Chris Weiss:

      you need to check multiverse repository enabled

    • amer
      Nov 2, 2008 at 10:37 AM / Reply

      cant get it done

    • admin
      Nov 3, 2008 at 8:27 AM / Reply

      amer try to check java -version

Leave A Comment