Howto install Sun Java Runtime Environment (JRE) in Ubuntu 10.04 (Lucid Lynx)

Sponsored Link
Java is an object-oriented programming language developed by Sun Microsystems in the early 1990s. Java applications are compiled to bytecode, which at runtime is either interpreted or compiled to native machine code for execution.
The language itself derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. JavaScript, a scripting language, shares a similar name and has similar syntax, but is not directly related to Java.

We have already posted about sun java was moved to the Partner repository in Ubuntu 10.04 (Lucid)

Procedure to follow

Open terminal and run the following commands

Add partner repository using the following command

sudo add-apt-repository "deb lucid partner"

Update the source list

sudo apt-get update

Now install sun java packages using the following commands

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

The above command will download all the required 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.

Testing Java Runtime Environment

You’ll want to confirm that your system is configured properly for Sun’s JRE. This is a two-step process.

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

java -version

Sponsored Link

You may also like...

127 Responses

  1. leroyg says:

    This looks like its going to change my 10.04 server into a desktop.

  2. petar says:

    try this way…
    apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

    then type this:
    sudo !!

  3. Igor Passchier says:

    The package has been removed completely from the partner repository due to license issue, see

  4. KAPOR says:

    for those who constantly receive error msg can try the following command lines:

    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:ferramroberto/java
    sudo apt-get update
    sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

  5. frans van der star says:


    Many thanks KAPOR

    You come with the ultimate solution!!!!!

    With the remark that Ubuntugeek can may be do your instruction FIRST FOR UBUNTU 10.04 AND THE OTHER

    I need JRE because setting JAVA for various ERP-applications

  6. Bryanitur says:

    Thanks Kapor. You r a real pal. Kuddos.

  7. matrix says:

    thanks man you very smart

Leave a Reply

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