Installing Sun JDK 5 on Ubuntu 9.10 and 10.04

Hello :)

As you known, Sun JDK version 1.5 or 5 is deleted from Ubuntu 10.4 and 9.10 repositories and the version 6 has been replaced.

The easiest way to install Sun JDK 5 version is add its repository from Ubuntu 9.04 to the list of repositories in 9.10 and 10.04. For this purpose, follow the steps.

1- Open /etc/apt/sources.list with a text editor like gedit:

sudo gedit /etc/apt/sources.list

2- Add the following lines to the end of the file then save it and close:

  ## For sun-java5-jdk
 deb http://ir.archive.ubuntu.com/ubuntu jaunty-updates main multiverse

3- Update the packages lists and install sun-java5-jdk:

 sudo aptitude update
 sudo aptitude install sun-java5-jdk

* Above method can be used for other applications.

Another way to install jdk 5 is download software package and its dependencies from packages.ubuntu.com.

Good luck

Share

I'm Senior software engineer with 5+ years of professional experience includes cross-platform proficiency with considerable knowledge of programming languages especially Java and programming paradigms such as OO and development methodologies. Also I'm MySQL DBA since 2006.

26 thoughts on “Installing Sun JDK 5 on Ubuntu 9.10 and 10.04

  1. Hi all,

    i’m on Ubuntu 10.4 x64 .. i can’t build red5 with sun-java5-jdk ..
    so i try .. sudo aptitude install sun-java6-jdk
    don’t forget to – update-alternatives –config java
    and choose right one ..

    now red5 build is finis whit no err’s :)

    have a nice day,
    T.

  2. thank you it work but after write the command the license (DLJ) appear in the terminal and I can do any thing How can continue this installation?

  3. Hi,
    I had java 1.6 on my ubuntu10.4.
    Now i’ve removed java 1.6 and trying to install java5 by following above procedure. but I’m getting errors as follows while updating:

    Err http://ir.archive.ubuntu.com jaunty-updates/main Packages
    404 Not Found [IP: 91.189.88.45 80]
    Err http://ir.archive.ubuntu.com jaunty-updates/multiverse Packages
    404 Not Found [IP: 91.189.88.45 80]


    Help me to get out of this issue!!

  4. Err http://ir.archive.ubuntu.com jaunty-updates/main Packages
    404 Not Found [IP: 91.189.88.31 80]
    Err http://ir.archive.ubuntu.com jaunty-updates/multiverse Packages
    404 Not Found [IP: 91.189.88.31 80]
    W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]

    W: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/binary-i386/Packages.gz 404 Not Found [IP: 91.189.88.31 80]

    not working. the link is broken.

  5. Hi, I have Ubuntu 7.10 and I have tried to follow the steps given in the video.But uoerntunatfly I’m not getting the option Hardware Drivers’ from System > Administration > Hardware Drivers.Could u please let me know if there is any alternative procedure.Thanks in adv! :-/?

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>