Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Problem loading...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 706 of 843
Post > Topic >>

Problem loading libs via /etc/ld.so.conf

by Laurenz Albe <invite@[EMAIL PROTECTED] > Aug 2, 2006 at 01:46 PM

I am using Sun Java 1.4.2_05-b04 on a RedHat Enterprise Server 3 Linux
machine, Kernel 2.4.21, glibc 3.2.3.

I am trying to load the shared library that belongs to a native method.


When Java is started with

LD_LIBRARY_PATH=/path/to/lib java MyClass
or
java -Djava.library.path=/path/to/lib MyClass

everything works fine.


However, when I add /path/to/lib to /etc/ld.so.conf and run 'ldconfig',
Java does not find the library when run as

java MyClass

and re****ts an UnsatisfiedLinkError.

This happens only with Java, other programs find the libraries fine, and
the loader shows the libraries correctly when queried with 'ldconfig -p'.


Does anybody have an idea what is wrong?

Thank you,
Laurenz Albe
 




 7 Posts in Topic:
Problem loading libs via /etc/ld.so.conf
Laurenz Albe <invite@[  2006-08-02 13:46:32 
Re: Problem loading libs via /etc/ld.so.conf
Gordon Beaton <n.o.t@[  2006-08-02 16:46:04 
Re: Problem loading libs via /etc/ld.so.conf
Laurenz Albe <invite@[  2006-08-03 11:47:29 
Re: Problem loading libs via /etc/ld.so.conf
Gordon Beaton <n.o.t@[  2006-08-03 15:52:29 
Re: Problem loading libs via /etc/ld.so.conf
Laurenz Albe <invite@[  2006-08-03 14:47:18 
Re: Problem loading libs via /etc/ld.so.conf
"Ralf Ullrich"   2006-08-03 14:31:05 
Re: Problem loading libs via /etc/ld.so.conf
Laurenz Albe <invite@[  2006-08-03 14:44:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 14:54:38 CST 2008.