Installing Java 6 in Ubuntu 9.04

Right now I am using ubuntu 9.04 linux, to forget that expensive, usafe and slow experience. For insatalling java in Ubuntu 9.04, I do have to make come changes and followed some instruction. So here is those steps that i had followed to install java in Ubuntu 9.04.

Step 1:

Open terminal and run

$ sudo gedit /etc/apt/sources.list

Step 2:

sources.list file will get open.

Check whether there is given repository link or not, if not then add these lines at the end of the file.

deb dapper main restricted

deb dapper universe multiverse

Step 3:

After closing sources.list with save, we have to update it’s repository.For that run:

$ sudo apt-get update

Step 4:

Now we are about to install Java 6, But before install we have to map the dependencies with this instruction

$ sudo apt-get -f install

Step 5:

Finally, we have to install Java with this instruction

$ sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

(If you are beginner in ubuntu, you might not get idea to click <Ok> which you will get on configure window. For that you have to use TAB button and then ENTER>

Step 6:

Verification of Java installation

$ java -version

This instruction display the installed version of the Java.

5 Responses to Installing Java 6 in Ubuntu 9.04

  1. Brian says:

    hiya, i have the same problem. i followed your instructions and i still have the old version
    root@mine:/home/ann# java -version
    java version “1.6.0_13”
    Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
    Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

    • Brian says:

      Hi Prashant,

      Sorry , I have finally got it to work, BUT , I changed YOUR command to NOT INSTALL sun-java6-jdk BUT sun-java6-fonts instead , and it now all works fine.

      Thanks for your help.

  2. ovais says:

    a good tutorial for java installation in Ubuntu..
    i am happy after running the Hello World Program..

    Thanks much..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: