Hi Kevin,=20
thanks for that. i think i've got it sorted now. i had to create a
manifest file specifying the Class-Path to the jar file associated with
the jni.so. i *think* this ensures the same classloader for my MBean and
the library. thanks for your help
Cheers=20
Mike=20
On Mon, 2003-03-17 at 17:15, Kevin Conner wrote:=20
> > the libray appears to load, but when i go to use the library for the
> > first time though, i get a java.lang.UnsatisfiedLinkError for=20
> > the method
> > invocation.
>=20
> It means that the library does not contain the exact method you are
> calling (the signature may be different).
>=20
> > i have set the runtime java.library.path and $LD_LIBRAY_PATH to ensure
> > the library is visible to my MBean but still no joy. an ldd on the
> > shared object shows no unresolved errors;
>=20
> Run 'nm -g' on the .so and look for names in the text section
> that begin with Java_. These are mangled java names (class +
> method + parameters + return type). See if the one for your
> method is present.
>=20
> You can also try truss'ing the executable and make sure that
> it is loading the correct version of the .so.
>=20
> HTH,
> Kev
>=20
> Kevin Conner
> This is a personal e-mail. Any views or opinions presented are=20
> solely those of the author and do not necessarily represent those=20
> of Orchard Information Systems Ltd.
--=20
___________________________________________________________________
Mike Hepburn Phone: +44 (0)207 749 7900
Anvil Software Limited Fax: +44 (0)207 749 7916
51-53 Rivington Street E-mail: mi...@an...
London EC2A 3SE ef...@ho...
|