Subject: Netbsd and JNI
To: None <tech-pkg@netbsd.org>
From: Erik Mattsson <erik.mattsson@imbridge.com>
List: tech-pkg
Date: 07/12/2002 12:43:01
Hi

Im working on setting up a servlet that uses JNI on a netbsd box. The servlet works fine
on a solaris and windows box.
Ive managed to compile everything and it looks fine BUT when I then run
the java test program (testing outside the servlet) it shoves this error onto me:

Starting to decode JP2
lib.path=/usr/pkg/java/jre/lib/i386:/usr/pkg/java/jre/lib/i386/green_threads/:/usr/pkg/java/jre/lib/i386/classic:/usr/lib:/lib:./
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/bob/jpeg2k/java/libJpeg2000ServletDecoder.so: /usr/lib/libm.so.0:
undefined symbol:
__sF
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1419)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1343)
        at java.lang.Runtime.loadLibrary0(Runtime.java:749)
        at java.lang.System.loadLibrary(System.java:820)
        at com.imbridge.iwip.servlet.codec.Jpeg2000ServletDecoder.<clinit>(Jpeg2000ServletDecoder.java:23)
        at MainServletTest.main(MainServletTest.java:98)


It complains on a library that I havent created.. Now I wonder how I should counter this problem!?

Any help is appreciated!!

Regards
erik

---------------------------------------------------------------------
Erik Mattsson

imBridge AB
Vasaplatsen 8
SE-411 34 Göteborg

Phone: +46-31-138310
Mobile: +46-733-174116
www.imbridge.com