What I did was:
ssmeenk@valor$ ls -la j2re* -rw-r--r-- 1 ssmeenk ssmeenk 14396068 Nov 14 14:07 j2re-1_4_2_06-linux-i586.bin ssmeenk@valor$ fakeroot make-jpkg j2re-1_4_2_06-linux-i586.binmake-jpkg will ask you a number of questions, none of which are too hard to answer, even if you're not a Debian expert.
ssmeenk@valor$ ls -la sun* -rw------- 1 ssmeenk ssmeenk 20089292 Nov 14 14:08 sun-j2re1.4_1.4.2+06_i386.debThe generated sun-j2re1.4 package depends on Debian specific files which *are* available from the Debian main archive by issuing:
root@valor# apt-get install sun-j2re1.4debianIf you built the 1.5 release of the Sun J2RE, you'll need to change the apt-get install line above to reflect your version. D'uh!
root@valor# dpkg -i sun-j2re1.4_1.4.2+06_i386.debIt will then install the generated Debian package and all will be good. Next we check if the symlinks from Mozilla's plugin directory to the Java plugins are correct:
root@valor# ls -l /usr/lib/mozilla*/plugins/libjava* lrwxr-xr-x 1 root root 39 Nov 14 14:11 /usr/lib/mozilla-firefox/plugins/libjavaplugin.so -> /etc/alternatives/firefox-javaplugin.so lrwxr-xr-x 1 root root 39 Nov 14 14:11 /usr/lib/mozilla/plugins/libjavaplugin.so -> /etc/alternatives/mozilla-javaplugin.so root@valor# ls -l /etc/alternatives/*javaplugin* lrwxr-xr-x 1 root root 65 Nov 14 14:11 /etc/alternatives/firefox-javaplugin.so -> /usr/lib/j2re1.4-sun/plugin/i386/ns610-gcc32/libjavaplugin_oji.so lrwxr-xr-x 1 root root 65 Nov 14 14:11 /etc/alternatives/mozilla-javaplugin.so -> /usr/lib/j2re1.4-sun/plugin/i386/ns610-gcc32/libjavaplugin_oji.soSomehow something on my system has created these alternatives vor javaplugin, i'm not sure what package it was, but i'll update that later when I found out ;). For now, restart your browser, type 'about:plugins' in the navigation toolbar, and Mozilla should show: Java(TM) Plug-in 1.4.2_NN-bNN is installed!