Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Env variables

 
Mike Dev
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mike Dev
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic