Subject: Netbsd and JNI
To: None <>
From: Erik Mattsson <>
List: tech-pkg
Date: 07/12/2002 12:43:01

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
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/bob/jpeg2k/java/ /usr/lib/
undefined symbol:
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(
        at java.lang.ClassLoader.loadLibrary(
        at java.lang.Runtime.loadLibrary0(
        at java.lang.System.loadLibrary(
        at com.imbridge.iwip.servlet.codec.Jpeg2000ServletDecoder.<clinit>(
        at MainServletTest.main(

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

Any help is appreciated!!


Erik Mattsson

imBridge AB
Vasaplatsen 8
SE-411 34 Göteborg

Phone: +46-31-138310
Mobile: +46-733-174116