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?
set CATALINA_HOME=C:\ "top level directory of your Tomcat install"
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.
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).
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With