File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes javaInstallError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "javaInstallError" Watch "javaInstallError" New topic


Jason Travis

Joined: Apr 05, 2001
Posts: 8
I have attempted to install java 1.3.1 and have ran across a light problem. Installation from an rpm works fine but after install is complete if I type java -version, javac, etc I recieve the following message:
/usr/java/jdk1.3.1/bin/i386/native_threads/java: error while loading shared libraries: cannot open shared object file: No such file or directory.
I am stumped. Any suggestions whould be appreciated.
Thanks in advance
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
This is a fairly well known problem. I assume you are using Red Hat 7 (or some derivative of it like e-smith). You need to install the "libc++ compatibility rpm" (I don't have the exact name to hand right now, but it's fairly easy to fdind on the RH CD or the RH web site :- look through the rpm list for one with "C++" and "compat" in the name.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Wand Wong

Joined: Dec 05, 2001
Posts: 1
Thanks, and it really works! I found my RPM from with the "compat" criteria, and then search for "C++" in the web page. Thanks again!
I agree. Here's the link:
subject: javaInstallError
jQuery in Action, 3rd edition