Apache Tomcat is an open source servlet container developed by the Apache Software Foundation (ASF). It is needed to implement Java Servlet and the JavaServer Pages (JSP). I will describe the way of installing for win7 x64 .. Download Tomcat from Apache click here.
It will be zip file and extract the zip to any directories of your pc. Suppose you exacted it to desktop.
Open command prompt and go to that directory .
> cd C:………….Desktopapache-tomcat-7.0.0
then access bin folder of apache-tomcat-7.0.0
> cd bin
then just type startup.bat to start tomcat
> startup.bat
Tomcat will start. if you get any error message related to environment variable. Then set an environment variable named JRE_HOME to the pathname of the directory into which you installed the JRE or you may also use the full JDK rather than just the JRE. In this case set your JAVA_HOME environment variable to the pathname of the directory into which you installed the JDK. Click here for details on setting environment variable.
Now opren your browser and type
http://localhost:8080
To stop tomcat.. type
> shutdown.bat