Does jni work?

Martin Kahlert martin.kahlert@infineon.com
Thu Jan 25 23:26:00 GMT 2001


Hello Tom,
On Thu, Jan 25, 2001 at 10:33:32AM -0700, Tom Tromey wrote:
> >>>>> "Martin" == Martin Kahlert <martin.kahlert@infineon.com> writes:
>> Martin> libsample.so: sampNat.c sample.h
> Martin> 	gcc -shared -fPIC -o $@ $<
>> Here you build a library named `libsample.so'...
>> Martin> static {
> Martin> System.loadLibrary("sampNat");
> Martin> }
> Martin> }
>> ... but here you try to load it with a different name
>> Martin> Exception in thread "main" java.lang.UnsatisfiedLinkError: sampNat: file not found
>> ... which is what the exception tells you.

Oouuch!!!
Sorry. I should go on vacation for a few weaks.
Thanks and sorry for the silly mistake,
Martin.
-- 
The early bird gets the worm. If you want something else for 
breakfast, get up later.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /