-2

I've installed Tomcat7, set the systems environmental variables for both JAVA_HOME and CATALINA_HOME. However, when I try and run startup from command prompt I'm getting the following error. CATALINA_HOME environmental veriable is not defined correctly. This environmental variable is needed to run this program.

Here's the command prompt:

enter image description here

Also I've set the enviromental veriables like this:

enter image description here

I don't understand why this is happening?

Sky
  • 197
  • 1
  • 8
  • 27

3 Answers3

1

Guessing from your console, you may want to set CATALINA_HOME to 'C:\JavaSE7\Tomcat7\apache-tomcat-7.0.29'

Jason Schindler
  • 2,790
  • 1
  • 13
  • 8
0

In command prompt, execute:

echo %CATALINA_HOME%

Does it show C:\JavaSE7\Tomcat7? If not, have you restarted your machine since adding the variable? You might have to do that.

SergeyB
  • 9,478
  • 4
  • 33
  • 47
0

I fix it this way on command line:

set CATALINA_HOME = C:TomCat7\apache-tomcat-7.0.29 then ran up startup in
TomCat7\apache-tomcat-7.0.29\bin

Sky
  • 197
  • 1
  • 8
  • 27