Figure C-2: Tomcat directory structure As you can see, several directories shown in the figure have subdirectories. Not all the subdirectories within Tomcat can be shown here because of space limitations. Throughout this appendix we will examine different directories in the Tomcat installation that are relevant to the Tomcat configuration and JSP processing. Assuming you see something similar to Figure C-2 on your screen, you are almost ready to check whether your Tomcat installation was successful. However, first you need to set up a few environment variables, as described in the following section. Setting Your Tomcat Environment Variables Tomcat uses a script located in the bin directory called, appropriately enough, startup.bat, which requires several environment variables to be set on your system for proper execution. Table C-1 lists these variables and their purpose. Table C-1: Tomcat Environment Variables Variable Name Purpose JAVA_HOME Points to the root directory of your Java installation. TOMCAT_HOME Points to the root directory of your Tomcat installation. If you are running Windows 9x, you can assign these environment variables in your autoexec.bat file as follows:
We offer quality web hosting with only $3.99 per month with unlimited email addresses, unlimited bandwidth, and unlimited server space. Check our web hosting unlimited bandwidth section.

Leave a Reply