|
From: Leif M. <le...@ta...> - 2007-09-08 08:23:07
|
Frank, By default, the Wrapper runs as the SYSTEM user. If you want to be running as a specific user, try setting the wrapper.ntservice.account property. Be sure to read the docs: http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.html Cheers, Leif Frank F Chiang wrote: > I have a Java program in which I'm calling System.getProperty("user.home"); to get the user's home directory. This would give me something like C:\Users\username (on Vista). > > I've connected it to the wrapper and when I run the App.bat file, everything is still fine, but when I install the program as a service and try to start it in Control Panel -> Administrative Tools -> Services, then it returns an error. In the log that was created, I see that System.getProperty("user.home") suddenly gives C:\ instead of my home directory. > > Does anyone know why this is and how to solve this problem? > > Thanks! |