Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Tomcat fails to start - CATALINA_HOME environment variable is not defined correctly  RSS feed

 
Ranch Hand
Posts: 161
Firefox Browser Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everyone,

I just installed Apache Tomcat 8.0.12 into my laptop for servlets assignment. I then went to command prompt and did a

C:\tomcat\apache-tomcat-7.0.55\bin>startup.bat start

Doing this I received an error "The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program".

Here are my environment variables, system variables:

PATH: C:\Program Files\Java\jdk1.7.0_67\bin;C:\Program Files\Java\jre7\bin;C:\tomcat\apache-tomcat-8.0.12\bin;
JAVA_HOME: C:\Program Files\Java\jdk1.7.0_67
JRE_HOME: C:\Program Files\Java\jre7
CATALINA_HOME: C:\tomcat\apache-tomcat-8.0.12\bin;

I just got back on the saddle where I left. I need to get tomcat running first before I can start with the cattle drive assignments.

Does anyone have any idea what else I can try? I will try to sleep in it and try again tomorrow.

Thank you in advance.
Gary
 
Ranch Hand
Posts: 50
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gary,
Do you have two installations of Tomcat?
C:\tomcat\apache-tomcat-7.0.55\bin>startup.bat start
CATALINA_HOME: C:\tomcat\apache-tomcat-8.0.12\bin;
Can you try running startup.bat from the apache tomcat 8 ?
 
Gary Ba
Ranch Hand
Posts: 161
Firefox Browser Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply Pallavi.

Yes, I made a typo when copying the location of tomcat. Initially, I installed tomcat 7 but found out it is not compatible with JRE 7 so installed tomcat.

From command prompt, I typed in C:\tomcat\apache-tomcat-8.0.12\bin>startup.bat start
and i still get same error

"The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program"

Gary
 
Pallavi Sadit
Ranch Hand
Posts: 50
3
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gary,
One more thing I noticed. You have set your CATALINA_HOME to the bin directory of Tomcat. The home is mostly the installation directory, can you try changing to following:
CATALINA_HOME=C:\tomcat\apache-tomcat-8.0.12
and try starting the server again.
 
Gary Ba
Ranch Hand
Posts: 161
Firefox Browser Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pallavi,
Yehey! Wohooo! It works after removing the bin on tomcat!!

I then went onto http://localhost:8080/ and saw the apache tomcat version and a succesful message.

Thank you!

Gary
 
Pallavi Sadit
Ranch Hand
Posts: 50
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!