• Tomcat uses several environment variables. The only one that is required is JAVA_HOME. However the others are worth knowing about as they can be useful
  • JAVA_HOME – Should point to your Java install
    • eg. C:\Program Files\Java\jdk1.6.0_07
  • CATALINA_HOME – (Optional)Should point to your Tomcat install.
    • eg. C:\apache-tomcat-6.0.16
    • Will default to the current directory if not set
  • CATALINA_BASE – (Optional) Points to where the dynamic content of Tomcat is.
    • Dynamic content includes web-apps, logs, config files, libs etc
    • This allows multiple users to run different instances of tomcat with different webapps from a single Tomcat install.
    • Defaults to CATALINA_HOME
  • There are several other environment variables which can be used. Please look at catalina.bat(Windows) or catalina.sh(Linux) in the bin directory for a full list.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s