I recently had to do some work on Sakai 2.4 but was having trouble building and running it in Java 1.6. This gave me the chance to blow away and re-install an old PC I had lying around, with the latest version of Ubuntu (10.04). However, with the default software source repositories, it only supports Java 1.6 (and prefers OpenJDK too). Here’s how to get Sun Java 1.5 installed on Ubuntu 10.04:
Add the following to /etc/apt/sources.list:
Update the package list:
Install Sun Java 1.5:
Depending on your setup you might need to set this as the default. Check what version is default:
And list all Java versions installed:
Then if necessary:
If you want to get Sun Java 1.6 installed, instead of OpenJDK, just enable the partner repositories in the Package Manager > Software Sources and it will show up in the list for you to install.