Install Sun J2SDK 1.5 Java in Debian Linux

Good News !!! As of 17-May-2006 Sun Java can be distributed with Debian.  Currently it's only in the unstable branch as part of non-free, so ensure that you have
deb unstable main contrib non-free
in your
and install as any other Debian package. You will not need to follow the procedure below unless you want to install a different version.
If you previously followed the procedure below, make sure that you use update-alternatives to switch to the new java installation before removing your self-built package.

fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin

as root, run

dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb


Configure default java packages as desired with

update-alternatives --config java
update-alternatives --config javac

You may now want to delete old or obsolete java packages (via aptitude)

Comments (0)