Tutorial to install tom cat web server.Tomcat server supports java of versions 1.4.2 or higher. 1. First install java before the installation of tomcat server, say we are installing ourjava in the operating system drive with a separate folder. 2. Then proceed to Java installation (here we are installing j2sdk1.4.2) 3.Click on the j2sdk-1_4_2-win file and allow java to be installed (this may take someminutes) 4. After the installation of java we need to set the path for java in the following way:(forXP) 1. Right click on the my computer 2. Click on the properties 3. Click on the advanced 4. Then on the environment variables Set the variables Classpath and path as shown belowclick on the ok button5.click on the ok button.All the variables are set now. Here we should install java with the location address D:\j2sdk1.4.2 Now we have finished installation of java.6. We shall start the installation of Tomcat server. We are installing jakarta-tomcat-5.0.5.7. So click on the setup file.8. For easy location and effective use of the server follow the following steps:9. Tomcat sever was installed in the location D:\Tomcat5.010.click on the Next button11. Click on the install button and follow the instructions.12. Finally u will be successfully installed with tomcat5.0 at the location D:\Tomcat5.0 13. Now we need to set the variables as followsSyntax shld be followed(ie semi colons and dots are provided as the way they arebelow mentioned)Environment variablesClasspathD:\j2sdk1.4.2\lib;D:\Tomcat5.0\common\lib\struts.jar;D:\Tomcat5.0\common\lib\servlet-api.jar;D:\Tomcat5.0\common\lib\commons-beanutils.jar;.;PathD:\j2sdk1.4.2\bin;D:\Tomcat5.0\bin;.;System variablesCATALINA_HOMED:\Tomcat5.014. Once we have set all the variables the software is ready.15. To check whether our installation has been success.Type http:\\localhost:8080 in the explorer then we see a type of page as shown below16. Now if we need to run struts applications Copy the struts zar file from struts-1.2.7(can be downloaded from jakartha.apache site)into D:\Tomcat5.0\common\lib Note: When ever we are including a zar file newly into the library files we need to setthe environment variables As an example see the pictureafter this also copy “struts-blank.war “ file from struts-1.2.7\webapps and paste into the location D:\Tomcat5.0\webapps Now u can run any struts application.All the struts applications should be placed inside the web appsie inD:\Tomcat5.0\webappsThus we can install Tom cat web server and also can apply it for struts
View Full Document