apachetomcat

Tomcat 8: How to overcome common error: The CATALINA_HOME environment variable is not defined correctly


I know that this is not the first time that this error has been addressed, but after looking at many posts, I'm not sure where I am going wrong. I am trying to start up a Tomcat 8 that I downloaded. I have zero experience in the Java world. Right now I am missing Microsoft MSI setup wizards :-)

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\C39293>echo %classpath%
c:\Informatica\9.1.0\DataTransformation\api\lib\CM_JavaAPI.jar; ;.;C:\PROGRA~2\S
QLLIB\java\db2java.zip;C:\PROGRA~2\SQLLIB\java\db2jcc.jar;C:\PROGRA~2\SQLLIB\jav
a\sqlj.zip;C:\PROGRA~2\SQLLIB\java\db2jcc_license_cu.jar;C:\PROGRA~2\SQLLIB\bin;
C:\PROGRA~2\SQLLIB\java\common.jar;C:\PROGRA~1\SQLLIB\java\db2java.zip;C:\PROGRA
~1\SQLLIB\java\db2jcc.jar;C:\PROGRA~1\SQLLIB\java\sqlj.zip;C:\PROGRA~1\SQLLIB\ja
va\db2jcc_license_cu.jar;C:\PROGRA~1\SQLLIB\bin;C:\PROGRA~1\SQLLIB\java\common.j
ar;C:\Program Files (x86)\Java\jre6\bin

C:\Users\C39293>echo %CATALINA_HOME%
C:\apache-tomcat-8.0.17\bin

C:\Users\C39293>echo %JRE_HOME%
C:\Program Files (x86)\Java\jre6\

C:\Users\C39293>cd C:\apache-tomcat-8.0.17

C:\apache-tomcat-8.0.17>cd bin

C:\apache-tomcat-8.0.17\bin>catalina
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

Which environment variables look wrong?


Solution

  • CATALINA_HOME must be set to 'C:\apache-tomcat-8.0.17' in your case. 'bin' directory is also included so it could be the reason that you see error.