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.
> 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:
> property set in my wrapper.conf file
> When I run the application using the batch file(the one that came with
> 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
> Does anyone know why this would be the case that it works when run
> the wrapper, but not as a service? I assume it has something to do
> working directories or path's, but I cant deduce where the problem is
> Any help would be appreciated.
> 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.
> Wrapper-user mailing list