tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neven Cvetkovic <>
Subject Re: question on different version of tomcat running on the same pc
Date Fri, 22 Aug 2014 21:07:25 GMT

On Fri, Aug 22, 2014 at 4:50 PM, Christopher Schultz <> wrote:

> So just write a batch script that looks like this:
> CALL %CATALINA_HOME%\bin\ start

You meant of course:  CALL %CATALINA_HOME%\bin\catalina.bat start

(Windows catalina.bat, Linux/Mac

> Name it tomcat-start-environmentX.bat and create one for each
> environment. If you want to be able to start/stop them, etc. then you
> can use bin\startup.bat for an example of how to copy command-line
> arguments from the current script and pass them to another (hint: it's
> not as easy as it is in a *NIX shell).
> I wouldn't ever recommend setting CATALINA_HOME and CATALINA_BASE
> globally. If you want to use multiple environments without installing
> a Windows Servics or writing your own wrappers, etc. then you *must*
> use the environment variables to control where Tomcat looks for things.
+1 Agreed - that's what I suggested as well - do not set up these
environment variables globally, just set them in your startup script for
that execution only.

Btw, the only variables that I set up globally on my system are JAVA_HOME
and PATH, since I use them for other purposes, too - not just starting up
Tomcat instances. It's useful to have %JAVA_HOME%\bin on your %Path% (as
the first thing in the list, before %SystemRoot% and other windows default


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message