CATALINA_HOME environmental variable is not defined correctly

krishna bhargavi picture krishna bhargavi · Feb 20, 2012 · Viewed 150.5k times · Source

I installed Apache Tomcat 6.0 to a C:/Program Files folder and I set the environmental variables JAVA_HOME and CATALINA_HOME, but when I start the server using startup.bat, I am getting the error:

CATALINA_HOME environmental variable is not defined correctly.

My CATALINA_HOME environment variable is set to CATALINA_HOME=C:\Program Files\apache-tomcat-6.0.35.

What did I do wrong?

Answer

Rohith picture Rohith · May 4, 2012

At first you have to mention tomcat up to tomcat's version refer below

CATALINA_HOME: C:\Program Files\apache-tomcat-6.0.35; then set CLASSPATH variable to

CLASSPATH : C:\Program Files\apache-tomcat-6.0.35\lib;

then finally edit path variable to PATH: .;%CATALINA_HOME%\bin;

NOTE: a semicolon(;) must be put at the end of each and every variable.