JNI and web services
Matthew Graham
mjg at cacr.caltech.edu
Tue Apr 13 17:15:24 PDT 2004
Hi,
I am trying to expose some C code as a web service via Java and JNI.
Everything works fine in a standalone mode but when I put it all together
as a web service with Tomcat/Axis, the dynamic library that JNI creates
(libfoo.so) cannot be found. This is the classic UnsatisfiedLinkError that
JNI throws out because the library is not in java.library.path; however,
how does one go about setting java.library.path so that it will get picked
up without hardcoding the Tomcat setup?
I have tried setting java.library.path just before the C code is called
and loading the library is attempted but it does not seem to work; has
anyone tried this and if so, got it to work?
Cheers,
Matthew
More information about the grid
mailing list