Wednesday, June 16, 2010

Installing Sun Java on Lucid Lynx

First I had to install python-software-properties to be able to run add-apt-repository:

sudo apt-get install python-software-properties

Then I add the repo that has Sun's jdk:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo aptitude update
sudo aptitude install sun-java6-jdk

Then, if there are multiple jdk alternatives on the system, choose which one you want with:

sudo update-alternatives --config java

2 comments:

Unknown said...

So my only real question on this, is why not just use the openjdk??

Clint

jeremy said...

No real reason except for habit and consistency for development. I'm currently trying to reproduce a bug and I didn't want other random variables to get in the way.