|
Tomcat Server |
|
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
Files\Java\jdk1.5.0_08
Here, we have taken the URI path according to
our installation convention
For Windows XP, Go through the following
steps:
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
JDK path.
For Windows 2000 and NT, follow these
steps:
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
installation. |
|
Here is the directory structure of Tomcat 6.0
shown as:
bin:
The bin directory includes all batch files that
are essential to startup and shutdown the
Tomcat server.
conf:
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.
lib:
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.
logs:
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
information, etc. |
|
Dec 2007 | Java Jazz Up |15 |
|
|
|
View All Topics |
All Pages of this Issue |
Pages:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50,
51,
52,
53 ,
54,
55,
56,
57,
58,
59,
60,
61,
62,
63 ,
64,
65 ,
66 ,
67 ,
68 ,
69 ,
70 ,
71 ,
72 ,
73 ,
74 ,
75 ,
76 ,
77 ,
78 ,
79 ,
80 ,
81 ,
82 , Download PDF |
|
|
|
|
|
|
|
|
|