Ubuntu Howto: Install Sun Java

Java LogoThis small guide shows how to install the original Sun Java 2 Platform Standard Edition 5.0 JRE (Java Runtime Environment) and JDK (Java Developer Kit) on Ubuntu.

The original Sun Java 2 is available in the ‘multiverse’ section of the Ubuntu repositories. To enable this section first add the multiverse repository to the apt sources file – the /etc/apt/sources.list should look like, – important parts are in bold:


deb http://dk.archive.ubuntu.com/ubuntu/ feisty universe multiverse

Now, update apt:

sudo apt-get update

Then install the Java debian packages.

sudo apt-get install sun-java5-bin

Or this for installing the JDK ( the Java SDK )

sudo apt-get install sun-java5-jdk

Related posts:

  1. Howto Install Sun Java on Debian Etch
  2. Howto install Java on Debian Sarge
  3. Ubuntu Howto: Install Oracle
  4. Howto install Sun Java on Debian Sarge
  5. Howto PHP / Java bridge on Debian
  6. Ubuntu Howto: Install Ruby and Ruby on Rails
  7. Dalvik: How Google routed around Sun’s IP-based licensing restrictions on Java ME
  8. Howto Install Oracle on Debian
  9. Howto use WEP encryption with Ubuntu Linux
  10. Ubuntu and Ruby

Popular Related Items »

1 Comment »

  1. Allan said,

    April 29, 2009 @ 21:37

    Incredibly arcane instructions. You Linux geeks think that everyone is supposed to know what the hell you are talking about. You say:

    The original Sun Java 2 is available in the ‘multiverse’ section of the Ubuntu repositories. To enable this section first add the multiverse repository to the apt sources file – the /etc/apt/sources.list should look like, – important parts are in bold:

    Juat what the hell is that supposed to mean and how do you add anything to something called the apt sources file. Get a grip. If you are going to give instructions for christ sake make them step-by-step and clear as water. No wonder people do not want to switch to Linux I think I will go back to Windows too just for this kind of ill considered, so called, help file. Disgusted

RSS feed for comments on this post · TrackBack URI

Leave a Comment