Thursday, August 24, 2006

Sun JDK1.3.1

I needed to install Sun's Java SDK v1.3.1, so I downloaded and installed j2sdk-1_3_1_18-linux-i586. However, when attempting to run it the following error was produced.
$ /opt/jdk1.3.1_18/bin/java
/opt/jdk1.3.1_18/bin/i386/native_threads/java: error while loading shared libraries: cannot open shared object file: No such file or directory
To workaround this I installed the GNU stdc++ library (libstdc++2.10-glibc2.2) using Synaptic. This creates the file /usr/lib/ which I then symlinked to as follows:
$ cd /usr/lib
$ sudo ln -s