This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Missing something with gcj and jni - libjni.so?
- From: Tom Tromey <tromey at redhat dot com>
- To: "Joham, David J (HP-Boise R&D)" <david dot joham at hp dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: 13 May 2005 10:30:28 -0600
- Subject: Re: Missing something with gcj and jni - libjni.so?
- References: <2D8BB15C7B5C214F81C32D3A83B3273601C6812D@idbexc01.americas.cpqcorp.net>
- Reply-to: tromey at redhat dot com
>>>>> "David" == Joham, David J (HP-Boise R&D) <david.joham@hp.com> writes:
David> The compile works fine and I'm left with a webserver
David> executable. However, when I try to run the executable, I get
David> the following exception:
David> Exception in thread "main" java.lang.UnsatisfiedLinkError: libjni: libjni.so: cannot open shared object file: No such file or directory
[ ... ]
David> at hp.WebServerStartup.loadNativeLibrary(java.lang.String) (Unknown Source)
David> The problem is I can't find libjni.so anywhere on my system.
The call is coming from your application, not libgcj.
Presumably your application ships native code, which it expects to be
built and installed somehow as "libjni.so". Search for
System.loadLibrary in your sources.
Tom