How to install Sun Java (j2sdk1.5) in Debian Linux
Wed, 21 Sep 2005 05:13:30 -0700
This is how I install Java in Debian Linux.
[I am a plastic surgeon, not a software installation expert, so please
be kind in your comments.]
1. Download the Java j2sdk1.5 package from one of Sun's servers.
This usually works for me:
http://sdlc-esd.sun.com/ESD10/JSCDL/jdk ... x-i586.bin
(Sun servers are a mess, and sometimes you will need to search Google
for "jdk-1_5_0-linux-i586.bin", to see were that file is living at a
2. Go to the directory were you downloaded the .bin file.
3. Get into a Linux shell window
4. As root do:
apt-get install java-package
This last command takes some time and you will need to answer some
questions and produces a a file named "sun-j2sdk1.5_1.5.0_i386.deb", or
Attention: In the following commands, instead of the given names do use
the (newer) names as outputted by the preceding command.
5. As root do:
dpkg -i sun-j2sdk1.5_1.5.0_i386.deb
This command produces a a file named "sun-j2sdk1.5debian.deb", or
Sometimes I get a file named "sun-j2sdk1.5.deb".
6. As root do:
# apt-get install sun-j2sdk1.5debian
7. Finally, if that command ends asking for it, as root do:
# update-alternatives --config java
Pre-compiled binary packages that may be found at the Internet, usually
end up giving problems latter in the most inconvenient moments. It seems
that there are kernel specific issues that must be addressed. So, in the
absence of a better opinion, the rule seems to be: whenever you change
your Linux Kernel, do remember to recompile the JAVA (j2sdk1.5) package.
All this consumes more time than it deserves, but that seems to be the
Sun's way of "doing business".
As usual, if you find a better way of doing this, please report to this
Please email new or noteworthy findings to firstname.lastname@example.org