Pages

Monday 19 August 2013

Tomcat server setup on windows

Tomcat an open source web server and servlet container developed by the Apache Software Foundation. Tomcat implements the Java Servlet and the JavaServer Pages and provides a "pure Java" HTTP web server environment for Java code to run in

This post will help you setup a tomcat server on your windows machine.

For setting up tomcat we need to first download the binary distribution zip file from the apache site. Download the latest version or the required version of zip file from http://tomcat.apache.org/download-60.cgi

dwnldLocImg

Unzip it and place it on any of the drives.

Now you need to add a new environment variable JAVA_HOME if it is not already present on yor machine. Please make sure it points to the JDK installed on your machine.

For example: in my case:  JAVA_HOME=C:\Program Files\Java\jdk1.6.0

envVarImg
Now go to bin folder under the unzipped apache-tomcat-6.0.36 folder and run startup.bat to start tomcat server. A console will open and once you see “INFO: Server startup in XX ms” it means the server is started . 
cmdPrmptImg

On your browser type http://localhost:8080/ and if you see the apache tomcat server page it means you've setup Tomcat successfully.

No comments:

Post a Comment