Home » Servlets » Installing Apache Tomcat In Windows :

Installing Apache Tomcat In Windows :

Apache Tomcat is an open source web server and Servlet container developed by the Apache Software Foundation (ASF).

Tomcat is java based web server, support jsp ,servlet, and java application. Tomcat need java environment to execute jsp and servlet or java class files. This needs to be JVM installed on server or machine, before running Tomcat.

This tutorial provides step by step explanation of how to install Apache Tomcat in Windows OS.

Note : - JDK must be installed in your system before installing Tomcat.


Installing JDK :

JDK must be installed with proper environment set up.Read this page for installing the JDK and setting up the environment.

Downloading Apache Tomcat :

You can download Tomcat Server it from Apache Website: http://tomcat.apache.org/download-60.cgi


Installing Apache Tomcat :

There are two ways to install tomcat server in windows which is mentioned below.You can use any of the way.

In Windows using zip file :

To install Apache Tomcat, all you have to do is simply unzip the downloaded (.zip) file to a safe location on your machine. For simplicity and easy access, we recommend you to unzip Tomcat in "C:\Tomcat6\" directory.


In Windows using .exe (Windows Service Installer) file :

After downloading the Windows installer(.exe) file, simply double-click on the .exe file and follow the steps mentioned below.

Tomcat installation in windows


Simply click on the 'Next' button and Accept the terms of the agreement by clicking on 'I Agree' button and in next screen Choose the features of Apache Tomcat you want to install by checking the components and click 'Next'.

Tomcat installation in windows


The default port number for Tomcat to process HTTP requests is 8080. You can either change the port number here or change it later after the installation in server.xml which is located in /conf/server.xml.

You can provide the username and password for Administrator login but for example purpose we leave it as blank. Now, click on the 'Next' button.

Tomcat installation in windows


The installer uses the registry to determine the base path of a Java 5 or later JRE, including the JRE installed as part of the full JDK.

It is not mandatory to use the default JRE detected by the installer. Any installed Java 5 or later JRE (32-bit or 64-bit) may be used by clicking on the browse button and click 'Next'.

Tomcat installation in windows


Choose Installation Location, in Windows by default the location will be provided as 'C:\Program Files\Apache Software Foundation\Tomcat 6.0'.But for simplicity, we recommend you to use 'C:\Tomcat6' as shown below and click 'Install'.

Tomcat installation in windows


Once installation is done ,Tomcat setup completion window is displayed as shown below and click on 'Finish' button.

Tomcat installation in windows


After that Apache Service Manager window appears which is attempting to start the Tomcat service as shown below.

Tomcat installation in windows


Once the service has been started, an Apache Tomcat icon appears on Windows Taskbar (bottom right).You can Start/Stop Tomcat from this icon.


Test your Installation :

Open browser and type http://localhost:8080. You should see the Apache Tomcat home page as shown below.

Tomcat installation in windows


Change Tomcat Start-up Setting :

Its very important to change the mode as Manual if we are configuring Tomcat server in Eclipse or any other IDE.

Open Control Panel\Administrative Tools and double-click on Services.Double-click on Apache Tomcat service and change the Startup type to Manual as shown below.

Tomcat installation in windows


Previous Article Next Article

comments powered by Disqus