How to set CATALINA_HOME variable in Windows 7?

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

How to configure CATALINA_HOME as an environment variable and how can I start a Tomcat server under Windows 7?

+42
java tomcat environment-variables catalina java-home
Jan 29 '13 at 9:34 on
source share
4 answers

Setting JAVA_HOME , CATALINA_HOME Windows Environment Variable

Can be done using the command line:

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

OR you can do the same:

  • Go to system properties
  • Go to your environment variables and add a new variable called JAVA_HOME and specify the value of the variable C:\ "top level directory of your java install"
  • Go to your environment variables and add a new variable called CATALINA_HOME and specify the value of the variable C:\ "top level directory of your Tomcat install"
  • In the path variable, add the new value of the variable ;%CATALINA_HOME%\bin;
+50
Jun 11 '13 at 12:40
source share

Assuming Java (JDK + JRE) is installed on your system, follow these steps:

  • Install Tomcat7
  • Copy 'tools.jar' from 'C: \ Program Files (x86) \ Java \ jdk1.6.0_27 \ lib' and paste it into the folder 'C: \ Program Files (x86) \ Apache Software Foundation \ Tomcat 7.0 \ Lib " .
  • Installation paths in environment variables as shown below:

C:> echo% path%

 C:\Program Files (x86)\Java\jdk1.6.0_27\bin;%CATALINA_HOME%\bin; 

C:> echo% classpath%

 C:\Program Files (x86)\Java\jdk1.6.0_27\lib\tools.jar; C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0\lib\servlet-api.jar; 

C:> echo% CATALINA_HOME%

 C:\Program Files (x86)\Apache Software Foundation\Tomcat 7.0; 

C:> echo% JAVA_HOME%

 C:\Program Files (x86)\Java\jdk1.6.0_27; 

Now you can verify that Tomcat is configured correctly by entering the following commands at a command prompt:

 C:/>javap javax.servlet.ServletException C:/>javap javax.servlet.http.HttpServletRequest 

He should show a bunch of classes

Now start the Tomcat service by double-clicking " Tomcat7.exe " under "C: \ Program Files (x86) \ Apache Software Foundation \ Tomcat 7.0 \ bin".

+11
Feb 13 '14 at 9:44
source share

Here is a tutorial on how to do this (CATALINA_HOME is the path to your Tomcat, so I assume something like C:/Program Files/Tomcat/ . And to start the server, you need to run script startup.bat from the command line, this will do :)

+3
Jan 29 '13 at 9:43 on
source share

Assuming Java (JDK + JRE) is installed on your system, follow these steps:

  • Install Tomcat7
  • Copy 'tools.jar' from 'C: \ Program Files (x86) \ Java \ jdk1.6.0_27 \ lib' and paste it into the folder 'C: \ Program Files (x86) \ Apache Software Foundation \ Tomcat 7.0 \ Lib " .
  • Installation paths in environment variables as shown below:

C: / "> javap javax.servlet.http.HttpServletRequest

He should show a bunch of classes

0
May 6 '14 at 12:40
source share



All Articles