Solved

# The CATALINA_HOME environment variable is not defined correctly

Posted on 2007-08-11
34,595 Views
CATALINA_HOME=C:\JavaTomcatServer\tomcat6014\bin
CLASSPATH=.;C:\Program Files\Java\jre1.6.0_02\lib\ext\QTJava.zip
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Some User
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_12
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\Common Files\Roxio Shared\DLLShared;C:\Program Files\QuickTime\QTSystem\;C:\JavaTomcatServer\tomcat6014\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 10, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=040a
ProgramFiles=C:\Program Files
PROMPT=$P$G
QTJAVA=C:\Program Files\Java\jre1.6.0_02\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\SOMEUS~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\SOMEUS~1\LOCALS~1\Temp
USERDOMAIN=OWNER-DOMAIN
USERPROFILE=C:\Documents and Settings\Some User
windir=C:\WINDOWS

MY JDK LOCATION IS:
C:\Program Files\Java\jdk1.5.0_12

AND TOMCAT LOCATIO IS:
C:\JavaTomcatServer\tomcat6014

THE ERROR I GET IS:

C:\JavaTomcatServer\tomcat6014>startup.bat
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

When i ECHO %CATALINA_HOME% i get C:\JavaTomcatServer\tomcat6014\bin

WHAT AM I DOING WRONG ...

I MOVED MY TOMCAT TO C:\JavaTomcatServer\tomcat6014 from the C:\Documents and Settings\Some User\Desktop location this morning and re-set my CATALINA_HOME AND THE PATH varaibles appropriately....
0
Question by:matu007

Author Comment

trying to get help sooner....thanx
0

LVL 142

Accepted Solution

CATALINA_HOME=C:\JavaTomcatServer\tomcat6014
0

Author Comment

i just did the same thing and it worked but i thought giving the path upto "bin" might have been more "elaborate" because catalina is in the bin folder. Whats wrong with that???

but any way it works!!

Also under what circumstances do i have to set JRE_HOME and TOMCAT_HOME???

0

LVL 142

Expert Comment

>Also under what circumstances do i have to set JRE_HOME and TOMCAT_HOME???
I don't know that for sure...
0

## Featured Post

### Suggested Solutions

EvenOdd challenge 10 68
Is there any core JDK API for PDF Creation? 5 31
endX challenge 2 32
mapBully challenge 6 53
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input: