Using Weblogic6.1 and JDK1.3.1 on Ubuntu 6.10

I needed to write some new features to project that still uses Weblogic6.1 in production (and they still use COBOL in their legacy mainframes). As tested before WL6.1 doesn’t work with JDK1.4 (starts, but when actually using it, you will run into problems). Ubuntu doesn’t offer JDK1.3.1 compliant java in its repositories anymore. Ok, no problem I downloaded JRocket7 (JDK1.3.1 compatible) from Bea site and installed it. Result - Segmentation Fault: Core dumped.

Second try. I downloaded latest Sun JDK1.3.1 for Linux and untarred it to /usr/lib/jvm
janno@janno:~$ /usr/lib/jvm/jdk1.3.1_19/bin/java -version
/usr/lib/jvm/jdk1.3.1_19/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

I tried to create some symlinks in /usr/lib directory, but all these ended with segmentation fault.

I checked old Redhat7 based system

ls -l libstdc++-libc6.1-1.so.2
lrwxrwxrwx 1 root root 30 Sep 9 2002 libstdc++-libc6.1-1.so.2 -> libstdc++-2-libc6.1-1-2.9.0.so

Not too sure, but that probably means that Redhat7 used libstdc++ that was linked against libc6 that was compiled with “famous” gcc 2.9.5. Ubuntu 6.10 uses gcc 4.1.2

Urmet gave me hint to try to install oldest libstc++ and try again. I installed libstdc++2.10-glibc2.2 as it seemed to be closest to Redhat7 version.


sudo apt-get install libstdc++2.10-glibc2.2

I also created symbolic link:


cd /usr/lib
sudo ln -s libstdc++-libc6.2-2.so.3 libstdc++-libc6.1-1.so.2

As result


janno@janno:/usr/lib$ /usr/lib/jvm/jdk1.3.1_19/bin/java -version
java version "1.3.1_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_19-b03)
Java HotSpot(TM) Client VM (build 1.3.1_19-b03, mixed mode)

Java seemed to run.

When installing generic Linux WL6.1 the installer started, but stalled soon with

Exception in thread main

Finally I just copied existing weblogic installation from old Redhat machine and copied it to my workstation. After modifing JAVA_HOME variable in startWeblogic.sh script the weblogic started and I was also able to access weblogic server console.

Edit: Although Java and Weblogic6.1 mostly run, I have seen some JVM and javac crashes(Aborted (core dumped)), so this setup is not suitable for production.

Leave a Reply