Obtain j2sdk-1_4_2_03-linux-i586.bin (this is the J2SE kit) from http://java.sun.com. It is a 34MB file so over a modem that could be 3 hours or so! Save the file into /usr/local/bin to save creating new paths. Then
# sh j2sdk-1_4_2_03-linux-i586.binTo accept the license type yes and the installation will begin. This will create a new directory in /usr/local/bin with the name j2sdk1.4.2_03. Now create the necessary links:
# ln -s /usr/local/bin/j2sdk1.4.2_03/bin/* /usr/local/binTo confirm it is installed:
$ java -version
If there's a problem it might be protections:
# chmod -R go+rX j2sdk1.4.2_03