Revise
/etc/apt/sources , and add multiverse
deb http://archive.ubuntu.com/ubuntu/ breezy main restricted universe multiverse
apt-get install java-package
Download the self-extracting Java version for Linux from
http://java.sun.com/j2se/1.5.0/download.jsp∞
fakeroot make-jpkg jre-1_5_0_06-linux-i586.bin
update-alternatives --config java
when ever sun spits out a new java, just do
make-jpkg jre-1_5_?_??-linux-i586.bin
dpkg -i sun-j2re1.5_1.5.?+update??_i386.deb
And if you ever want to switch back to a free java, update-alternatives is you friend