Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CATALINA_HOME environmental variable is not defined correctly

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?

like image 230
krishna bhargavi Avatar asked Feb 20 '12 13:02

krishna bhargavi


People also ask

What should the Catalina_home environment variable be set to?

set CATALINA_HOME=C:\ "top level directory of your Tomcat install"

Where is Catalina_home defined?

In environment variables define CATALINA_HOME as a new variable and the value for the variable value assign to >>> C:\apache\apache-tomcat-7.0.40. in the path append this %CATALINA_HOME%\bin to get the command "catalina start" to work. Follow this answer to receive notifications.

What is Catalina_home in Tomcat?

CATALINA_HOME is the folder where Apache Tomcat is installed e.g. c:\program files\Apache Tomcat or /usr/apache/tomcat . It is the folder where you unzip Tomcat in the first place (when you install from zip).


2 Answers

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.

like image 148
Rohith Avatar answered Oct 06 '22 16:10

Rohith


set JAVA_HOME :C:\Program Files\Java\jdk1.6.0_26 CLASSPATH :C:\Program Files\Java\jdk1.6.0_26\bin CATALINA_HOME : C:\Program Files\apache-tomcat-6.0.35 
like image 27
Sudarshan Avatar answered Oct 06 '22 16:10

Sudarshan