Home > Beta, Developer, Fixes & Tips, Guides & How-To, Java, Linux/Unix, Operating Systems, Software > Ubuntu 10.04 and getting Sun JRE instead of OpenJDK

Ubuntu 10.04 and getting Sun JRE instead of OpenJDK

If you’ve downloaded the latest Ubuntu 10.04 Lucid Lynx you’d realise that they ship with the OpenJDK instead of the Sun (Oracle) JRE. The Ubuntu team has decided to move the Sun Java bits to the partner repository which means we need to do a couple of things prior to getting it through apt-get.
First add the repository to your /etc/apt/sources.list via the add-apt-repository command, then do a full update.

$ add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ apt-get update

Then lets install the Sun JRE & JDK as required.

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

Once installed you can verify the correct JRE is installed with:

$ java -version

I have to say, this release of Ubuntu is incredibly refreshing 🙂 Its matured so well in a short period of time, its definitely got the Lynx Effect(NSFW).

{lang: 'en-GB'}
Share
  1. PD
    May 3rd, 2010 at 23:54 | #1

    thanks mate, this was very useful! Please post more Ubuntu stuff please

  1. No trackbacks yet.