Konstantin Kolinko schrieb am 23.01.2009 um 04:57:31 (+0300): > > I think that the answer is (and your solution proves this) that the > statement that service does not need environment variables is not 100% > true. > > That is, if you compare *.bat/*.sh with how the service is started, > you can see that *.bat/*.sh processes some env variables and builds > up a java -jar command from those variables.
Thanks for your help, Konstantin. Yes, I can see the command is built up in catalina.bat, although there is no -jar option in my version 6.0.18. > The service launcher from the other hand, launches that jar directly, > thus you have to configure all the arguments explicitly, and not > relying on the env variables. It is those vars that are not needed. > > If I remember correctly, the PATH variable is respected by the Win32 > API that loads the dll libraries. Thus the behavior that you had to > include that folder into the PATH. Win32 API help should provide more > information. > > http://msdn.microsoft.com/en-us/library/ms684175(VS.85).aspx > http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx Yes, the second of these docs mentions the PATH environment variable is searched in order to load, failing all other possibilities. Thanks, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org