|
From: Frank F C. <ff...@ny...> - 2007-09-07 21:11:46
|
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!
|