This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Does jni work?
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.