• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Tomcat: says CATALINA_HOME not defined correctly.

 
Mel Anisky
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't get Tomcat to work. When I run

C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\bin\startup.bat

I get the following error:

The CATALINA_HOME environment variable is not defined correctly.

I have CATALINA_HOME defined as %TOMCAT_HOME%
I have TOMCAT_HOME defined as C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\

CLASSPATH is C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\lib\servlet.jar

The directory for C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\ definitely contains bin, and C:\Users\Mel\Java\tomcat\apache-tomcat-6.0.35\bin\ contains startup.bat

What am I doing wrong?

 
J. Kevin Robbins
Bartender
Posts: 1744
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try removing that trailing backslash at the end of the path. Then from a command prompt, do a "set" to make sure the environment variable looks the way you expect it to.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't have CATALINA_HOME defined as anything! All you need to define is JAVA_HOME. The startup scripts take care of the rest.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and Welcome to JavaRanch Mel Anisky !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic