aspose file tools*
The moose likes Tomcat and the fly likes Env variables Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Env variables" Watch "Env variables" New topic
Author

Env variables

Mike Dev
Greenhorn

Joined: Jul 11, 2005
Posts: 11
Hi,

I have just started using Tomcat and I have a question regarding the CATALINA_HOME and CATALINA_BASE. To my understading, those varaibles were used in v4 of Tomcat but they are not necessary anymore in v5 (Windows Install). Is that correct? If not, what is their use?

Thanks.
Mike
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The startup scripts (if you're using them) will set CATALINA_HOME for you.

It's possible to have multiple instances of Tomcat run from one code base.
To do this you set up CATALINA_HOME to point to where you've installed Tomcat.
You then set up another CATALINA_BASE to point to the directory structure for each other instance.

If you're not doing this, you don't need to fuss with those environment variables.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Mike Dev
Greenhorn

Joined: Jul 11, 2005
Posts: 11
Hi,

Thanks for the explanation.

I used the setup program that is delivered with Tomcat and apparently it did not set any environment variable.

Mike


Originally posted by Ben Souther:
The startup scripts (if you're using them) will set CATALINA_HOME for you.

It's possible to have multiple instances of Tomcat run from one code base.
To do this you set up CATALINA_HOME to point to where you've installed Tomcat.
You then set up another CATALINA_BASE to point to the directory structure for each other instance.

If you're not doing this, you don't need to fuss with those environment variables.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Env variables