How to set CATALINA_HOME variable in windows 7?

VinaySV picture VinaySV · Jan 29, 2013 · Viewed 353k times · Source

I have downloaded apache-tomcat-7.0.35. My JDK version is jdk1.6.0_27.

How do I configure CATALINA_HOME as an environment variable and how do I run Tomcat server under Windows 7?

Answer

Zeeshan Akhter picture Zeeshan Akhter · Jun 11, 2013

Setting the JAVA_HOME, CATALINA_HOME Environment Variable on Windows

One can do using command prompt:

  1. set JAVA_HOME=C:\ "top level directory of your java install"
  2. set CATALINA_HOME=C:\ "top level directory of your Tomcat install"
  3. set PATH=%PATH%;%JAVA_HOME%\bin;%CATALINA_HOME%\bin

OR you can do the same:

  1. Go to system properties
  2. Go to environment variables and add a new variable with the name JAVA_HOME and provide variable value as C:\ "top level directory of your java install"
  3. Go to environment variables and add a new variable with the name CATALINA_HOME and provide variable value as C:\ "top level directory of your Tomcat install"
  4. In path variable add a new variable value as ;%CATALINA_HOME%\bin;