Subject: Re: Netbsd and JNI
To: Christos Zoulas <christos@zoulas.com>
From: Erik Mattsson <erik.mattsson@imbridge.com>
List: tech-pkg
Date: 07/15/2002 08:44:43
Hi
Its the sun-jdk1.3 ie the one that is packaged in the pkgsrc. So it is probably
that I linking with the netbsd stuff when I should link with the Linux binaries.
What can I do to make it link to the linux stuff (using sun_jdk)?
Thanx
Erik
----- Original Message -----
From: "Christos Zoulas" <christos@zoulas.com>
To: <tech-pkg@netbsd.org>
Sent: Friday, July 12, 2002 8:42 PM
Subject: Re: Netbsd and JNI
> In article <005301c22990$e5cb4a90$0800a8c0@imbridge.se>,
> Erik Mattsson <erik.mattsson@imbridge.com> wrote:
>
> What jvm is that? Looks to me that you are running a linux binary maybe
> and it links it the NetBSD libm?
>
> christos
>
> >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
> >
>