Now, set the environment variable for tomcat:
Step 4: Setting the JAVA_HOME Variable: Purpose of setting the environment variable
JAVA_HOME is to specify the location of the
java run time environment needed to support
the Tomcat else Tomcat server does not run.
This variable contains the path of JDK installation directory. Note that it should not contain the
path up to bin folder.
Set JAVA_HOME=C: \Program
Here, we have taken the URI path according to
our installation convention
For Windows XP, Go through the following
Start menu->Control Panel->System- >Advanced tab->Environment Variables->New
set the Variable Name as JAVA_HOME and
Variable Value as C:\Program
Files\Java\jdk1.6.0 and then click on all the
three Ok buttons one by one. It will set the
For Windows 2000 and NT, follow these
Start->Settings->Control Panel->System- >Environment Variable->New->set the Variable
Name as JAVA_HOME and Variable Value as C:\Program Files\Java\jdk1.6.0 and then
click on all the three ok button one by one. It
will set the JDK path.
Now, Start the Tomcat Server: Start the
tomcat server from the bin folder of Tomcat
6.0 directory by double clicking the “tomcat6.exe “ file. You can also create a
shortcut of this .exe file at your desktop.
Stop the Tomcat Server: Stop the server by
pressing the “Ctrl + c” keys.
Directory Structure of Tomcat Server
In the previous section, you learned the
installation of Tomcat version 6.0.10. Now, lets
quickly understand the directory structure ofTomcat 6.0 that are automatically built up after
Here is the directory structure of Tomcat 6.0
The bin directory includes all batch files that
are essential to startup and shutdown the
In this directory, all configuration files are
included that are essential to configure the
server. These files are context.xml, logging
properties file, sever.xml, etc.
This directory includes all java libraries in JAR
format that Tomcat uses. These files are
essential to run a web application (like a servlet,
jsp, etc.). Before running any type of web
application, the path must be set related to
that application from the lib directory.
The log directory contains log files according
to the date in which, the information of a web
application is put up each time when the
application is being run. This information
includes user-log (such as admin, hostmanager,
local host, etc.), servlet-context
Dec 2007 | Java Jazz Up |15
|View All Topics
|All Pages of this Issue