Anyone worked on JNI and Web Services
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Santosh_Puttaswamy
Posted On:   Wednesday, June 4, 2003 09:29 PM

hi,

If anyone worked on JNI and WebServices, please let me know where to place the shared library files .so/.dll in the web server path. do i need to add the context path of the directory where the so/dll file is present.

Thanking you
santosh(santosh_b_p@yahoo.com)

Re: Anyone worked on JNI and Web Services

Posted By:   Alexander_Grossert  
Posted On:   Monday, July 21, 2003 01:39 AM

Hi. I'm working on these things, too.
It is relatively unimportant where you put the .soo/.dll files. Only the native code and the header file need to appear in the same directory which has to be normally above the package in which you are using the implementation.
You can add the path where your library is situated to a Env Variable called LD_LIBRARY_PATH (UNIX) and everything works fine. In Windows it should be just PATH. If this does not work (I'm quiet sure it will work) you can also load your library manually. You should use

System.loadLibrary("yourLibrary");
at the moment. Using

System.load("/..yourDirectories/libyourLibrary.so");
you can load it without making your system search for it.
About | Sitemap | Contact