|
From: Leif M. <lei...@ta...> - 2015-05-12 11:08:34
|
Rob, We describe this on the following page: http://wrapper.tanukisoftware.com/doc/english/prop-java-library-path-n.html Java locates its native libraries using the java library path. You are specifying them on the classpath. In both cases this is being ignored. But they are all located in the ../lib directory. The most likely problem is that while java locates its native libraries using the java library path, those libraries locate ant dependent DLLs using the system PATH. The PATH is likely different in the user account where you are running your application. So my fist guess is that the SYSTEM user's PATH does not include the location of those dependent DLLs. We describe how to correct this in the above link. Please reply with the results. If this in not the problem, I will think about it some more. Cheers, Leif On Tue, May 12, 2015 at 4:13 PM, Rob Daems <rob...@gm...> wrote: > Hello, > > I'm using the following: > wrapper version 3.5.26 (communicty) on win7 - 64bit. > Wrapper is started in 32 mode > Integration method 4 is used. > > When I execute the last step to see that everything is configured > correctly, by executing the bat manually, there are no problems. (see > wrapper_via_bat.log) > > But when I actually run it as a windows service I get problems. (see > wrapper_via_service.log) > > An exception is thrown. According to the developer of that program which I > use, it's caused that native libraries are not loaded. > Since my program uses native dll (cppdll.dll and csdll.dll) they should be > loaded, but I don't have a clue where I have to put these and where I've to > configure them to be loaded. > I configured the following but it wasn't successfull: > > # Java Classpath (include wrapper.jar) Add class path elements as > # needed starting from 1 > wrapper.java.classpath.1=../lib/wrapper.jar > wrapper.java.classpath.2=../lib/*.jar > wrapper.java.classpath.3=../lib/Cppdll.dll > wrapper.java.classpath.4=../lib/Csdll.dll > > Nevertheless, I don't understand why it's working via the bat but not when > it's not running as a service > > Br, Rob > |