You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mark O'Driscoll <ma...@eircom.net> on 2004/11/25 10:32:44 UTC

Working directory for tomcat service on W2K

Is there any way to change this, when tomcat runs as a service, from
c:\winnt\system32?

TIA

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Working directory for tomcat service on W2K

Posted by Jacob Kjome <ho...@visi.com>.
Assuming you  are using Tomcat 5.x.xx, you can add the following to 
service.bat to set the working directory...

set PR_STARTPATH=%CATALINA_HOME%\bin
set PR_STOPPATH=%CATALINA_HOME%\bin

I set it to Tomcat's "bin" directory since that is where it would be if 
running with the startup.bat file.  Just seems consistent.  You can set it 
for anywhere you want.

You can also modify this using the GUI interface.  Just run "tomcat5w.exe" 
and adjust the values in the "Working Path" field in the "Startup" and 
"Shutdown" tabs.

Jake

At 09:32 AM 11/25/2004 +0000, you wrote:
 >Is there any way to change this, when tomcat runs as a service, from
 >c:\winnt\system32?
 >
 >TIA
 >
 >Mark
 >
 >
 >---------------------------------------------------------------------
 >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
 >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org