This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Help with static linking and UnsatisfiedLinkError
- From: Suresh Raman <sugansha at yahoo dot com>
- To: java at gcc dot gnu dot org
- Date: Mon, 22 Jul 2002 08:06:58 -0700 (PDT)
- Subject: Help with static linking and UnsatisfiedLinkError
Hi,
I have a simple java program that uses JNI, thereby requiring a
loadLibrary call. It runs fine when I build it using the normal way.
(gcj --main=test test.java).
I build it using "-static" and it still runs fine, but only if my
LD_LIBRARY_PATH environment variable points to the gcc31 installation's
lib directory (/usr/local/gcc31/lib).
The moment I remove /usr/local/gcc31/lib from my LD_LIBRARY_PATH, (the
path to my JNI implementation .so file is still there), I get a
UnsatisfiedLinkError in the System.loadLibrary() call.
My deployment scenario prevents me from having the entire contents of
/usr/local/gcc31/lib in my embedded device. So, any help in solving
this mystery would be appreciated.
thanks,
--Suresh
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com