LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Missing library (libstdc++-libc6.1-1.so.2) to run jdk1.3.1 (http://www.linuxquestions.org/questions/linux-newbie-8/missing-library-libstdc-libc6-1-1-so-2-to-run-jdk1-3-1-a-841758/)

Beekman 11-01-2010 05:06 PM

Missing library (libstdc++-libc6.1-1.so.2) to run jdk1.3.1
 
Hello,

I'm trying to switch my Eclipse-workspace from Windows to Linux.
But the project I'm working on needs Java 1.3.1.

When I try to run my Ant-build, I'm getting this exception:

Code:

[javac] Compiling 125 source files to ...
[javac] .../Java-Compilers/linux/jdk1.3.1/bin/i386/native_threads/javac: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

I found a library I think it could use instead and made a link (from the lib-directory);
sudo ln -s gcc/i486-linux-gnu/4.4/libstdc++.so libstdc++-libc6.1-1.so.2

But whenever I try to run java, or javac it just sais;
"Segmentation fault"

That probably isn't what it's supposed to do...
Can anybody help me with this problem?

This article seems to be te closest to my problem;
http://ubuntu-linux-dell-inspiron-94...un-jdk131.html

knudfl 11-01-2010 06:56 PM

libstdc++-libc6.1-1.so.2 is supposed to be a link to :
libstdc++-2-libc6.1-1-2.9.0.so

... from 'libstdc++2.9-glibc2.1_2.91.66-4_i386.deb'
http://ftp.de.debian.org/archive/deb....66-4_i386.deb

http://archive.debian.net/woody/libstdc++2.9-glibc2.1
..

P.S. : The source for these files [egcs1.1_1.1.2.orig.tar.gz]
is from years 1997-1998.
..

Beekman 11-01-2010 11:50 PM

Thanks, that works a lot better!

paulsm4 11-02-2010 12:11 AM

For whatever it's worth, it's EXTREMELY likely that your project will work with the latest/greatest Sun JDK/Sun JRE. I encourage you to give it a try, if you're planning on working much with this program.

IMHO...

Beekman 11-02-2010 02:50 AM

A large part of the project can be build with the latest JDK, but the project also contains a client which should run on a PDA or other mobile computer.
Because we use RMI we're bound to a JVM that can run on a PDA and supports RMI, and there aren't a lot.
Now we use Creme JVM, but it's J1.3.1 :(


All times are GMT -5. The time now is 09:45 PM.