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]4.

[3]: https://wiki.ubuntu.com/LucidLynx/ReleaseNotes#Sun Java moved to the Partner repository [4]: http://www.lynxeffect.com.au/

Related Articles

Comments have been disabled.