|
From: Andreas W. <and...@em...> - 2004-05-07 17:15:00
|
Dan when using a JNI library that depends on other shared libraries, it is normally not sufficient to specify the directory in the wrapper.java.library.path property. You must also set the PATH environment variable in Windows to include this directory. Are you sure that both the console and the service do run with the same user? Most likely, the console runs with the interactive user, and the service runs with LocalSystem. If this is true, you have to either add "set.PATH=C:\Dlls" to the service's command line in the registry or run the service with the same user as the console. Cheers, Andreas > Hello All, > I have a service that starts up and loads a native library, which in > turn is dependent on other native libraries. I have all these native > libraries in my C:\Dlls\ directory. I have the: > wrapper.java.library.path.2=C:/Dlls > > property set in my wrapper.conf file > > When I run the application using the batch file(the one that came with > the > service wrapper) it works fine! > > However when I run the application by typing net start myservice > > I get an UnsatisfiedLinkError, because it cannot find dependent > libraries. > > Does anyone know why this would be the case that it works when run > through > the wrapper, but not as a service? I assume it has something to do > with > working directories or path's, but I cant deduce where the problem is > > Any help would be appreciated. > > Dan > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Sleepycat Software > Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to > deliver higher performing products faster, at low TCO. > http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |