aspose file tools*
The moose likes Tomcat and the fly likes Problem with Tomcat: says CATALINA_HOME not defined correctly. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with Tomcat: says CATALINA_HOME not defined correctly." Watch "Problem with Tomcat: says CATALINA_HOME not defined correctly." New topic
Author

Problem with Tomcat: says CATALINA_HOME not defined correctly.

Mel Anisky
Greenhorn

Joined: Jan 27, 2012
Posts: 3
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
Ranch Hand

Joined: Dec 16, 2010
Posts: 632
    
    7

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.

"There is no reason for any individual to have a computer in his home" ~ Ken Olson, Co-founder of DEC, 1977
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

and Welcome to JavaRanch Mel Anisky !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with Tomcat: says CATALINA_HOME not defined correctly.
 
Similar Threads
"Head First Servlets & JSP" tomcat instructions
ben..............tomcat is not installing
Tomcat installation problems!
startup.bat stops itself
apache tomcat is arrogant...........huh