Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!

# The CATALINA_HOME environment variable is not defined correctly

Janu Rani
Greenhorn
Posts: 1
Hi All,

I am trying to configure Tomcat, even though I have set below paths. Still am getting

"The CATALINA_HOME environment variable is not defined correctly" error, unable to start the tomcat.

PATH: C:\Program Files (x86)\Java\jdk1.6.0_07\bin;
CATALINA_HOME:C:\apache-tomcat-6.0.37-windows-x64\apache-tomcat-6.0.37;
CLASSPATH:C:\Program Files (x86)\Java\jre1.6.0_07\bin;

could any one please provide suggestion to correct above error.

Janu

Tim Holloway
Saloon Keeper
Posts: 18152
52
Welcome to the JavaRanch, Jani!

It looks like you are putting "CATALINA_HOME" in your command shell path.

That is not how it works.

CATALINA_HOME is an environment variable. You set it like this, when running Tomcat in Windows:

Adjust these values as needed to point to your actual Tomcat and JDK directories.

Your PATH does not need to define or reference either CATALINA_HOME or the JDK, since the CATALINA_HOME\startup.bat script and its related scripts use whatever values were set in the environment variables.