Installing Sun j2sdk1.4.1_01 with debian stable (woody) 20021225


Installing Sub j2sdk1.4.1_01 on debian stable (woody) gave me some problems with libraries not being compatible. So here is what I did.
Installed java in /usr/local/j2sdk1.4.1_01
ln -s /usr/local/j2sdk1.4.1_01/jre/plugin/i386/ns600/libjavaplugin_oji.so /usr/lib/mozilla/plugins
# Comment: This is not as clean as should be. Since /usr shouldnt be altered. But it is the only way I know.
The plugin did not work
did ldd /usr/local/j2sdk1.4.1_01/jre/plugin/i386/ns600/libjavaplugin_oji.so and found it expected libstdc++-libc6.1-1.so.2 which it did not find.
So i did a symlink to a simliar lib ln -s /usr/lib/libstdc++-libc6.2-2.so.3 /usr/local/lib/libstdc++-libc6.1-1.so.2
echo /usr/local/lib >> /etc/ld.so.conf
ldconfig
And voila.
For the unpatient:
Install jdk in /usr/local/
ln -s /usr/local/j2sdk1.4.1_01/jre/plugin/i386/ns600/libjavaplugin_oji.so /usr/lib/mozilla/plugins
ln -s /usr/lib/libstdc++-libc6.2-2.so.3 /usr/local/lib/ldstdc++-libc6.1-1.so.2
echo /usr/local/lib >> /etc/ld.so.conf
ldconfig
Restart mozilla

Author Per-Olof Pettersson