How to install Tomcat 8 from ZIP file in Windows 7

Apache Tomcat J2EE Server

Apache has released its latest tomcat 8 with Java 7 support which include this enhancements as mentioned in Tomcat 8 change logs. Apache Tomcat 8 Download can be done from here .

Below are few key changes from Tomcat 7.x to Tomcat 8.x

– Apache Tomcat 8.0.x requires Java 7 or later. Apache Tomcat 7.0.x required Java 6.

– Apache Tomcat 8 supports the Java Servlet 3.1, JavaServer Pages 2.3, Java Unified Expression Language 3.0 and Java WebSocket 1.0 specifications.

– Servlet 3.1 API

– The default HTTP and AJP connector implementation has switched from the Java blocking IO implementation (BIO) to the Java non-blocking IO implementation (NIO)

– The Aliases, VirtualLoader, VirtualDirContext, JAR resources and external repositories features that all provided a way to add resources to a web application have been replaced with a single framework rather than each being implemented separately.

– Tomcat 8 embeds a packaged renamed version of Commons DBCP 2.x. There are a number of notable changes between Commons DBCP 1.x and Commons DBCP 2.x

– When starting Tomcat with the jpda option to enable remote debugging, Tomcat 8 listens on localhost:8000 by default. Earlier versions listened on *:8000.

For more you can check the Tomcat migration document.

Below are the easy steps you can follow to install and run tomcat 8 from downloaded zip file.

  1. Apache tomcat 8 download from apache download site.
  2. Extract the Tomcat zip to a desired location on your drive. Here we have used D drive.

Apache Tomcat Extraction Folder

  1. Now to run tomcat we need to set the JAVA_HOME .
    1. Downlaod JRE or JDK according to your requirement from oracle download site.
    2. We have downloaded latest JRE for 64bit systems i.e: jre-7u60-windows-x64.exe
    3. Once download completes double click on the exe file name to start the installation.Click Yes on User access control screen
    4. Select change destination folder incase you don’t want it to install in Program Files. Here we have choosen as D drive for the same so checked the option.

Jre Installation Screen

  1. Click on Install and click on Change to change the destination folder. We have choosen D:\JRE as the folder to install. Click on Next button.

Jre Installation Screen

  1. Wait for the installation completion.

Jre Installation Screen

  1. Uncheck the Restore Security Prompts if you don’t want to do it. Here we have unchecked the same.Click on Next button.

Jre Installation Screen

  1. Click on close to finish the installation

Jre Installation Screen

Now JRE is installed but we need to set the JAVA_HOME properly to let tomcat run fine. Please follow below steps to set the JAVA home environment.

  1. Click on Start > My computer and right click on it to go to Properties option.

Path To SYSTEM Properties

  1. In the properties panel click on the Advanced system settings.

Advanced System Settings

  1. In the system properties panel click on the Environment Variables.

System Properties Screen

  1. In the System Variables section click on New button and add below text for JAVA_HOME.

Edit System Variable Screen

  1. Once JAVA_HOME is set click on New button again to add the JAVA CLASSPATH like below.


  1. Now finally we have set the PATH variable so that it will point to JRE_HOME/bin directory to make the java available in command prompt.
  2. Search for the PATH variable from the list and click on Edit to edit it.

Environment Variables

  1. Add the %JAVA_HOME%\bin to the start of the variables list like below separated by semi colon”;”.

Edit System Variable

  1. Click on OK button to complete the set and click again OK button to complete the Environment variables set.

Environment Variables

To test the Java has been set properly open command prompt and execute java –version command and see it shall show output like below.(Make sure you open the command prompt in administrator mode as we are going to use it to run Tomcat in following section)

Command Prompt Run As Administrator

Now execute the java –version and you shall see an output like below

Java Version Screen

Now change directory to the tomcat zip file extraction location like below.

Apache Tomcat Home

Now cd to bin folder and run startup.bat to start the tomcat, it shall popup a new window like below and the “Server Startup in xxxx ms” shall show.

Tomcat Start Screen

Now to test the tomcat is up or not you can just open any browser and type http://localhost:8080/ and you shall see below screen.

Tomcat Home Page

This completes your basic tomcat setup. You can use below links provided by tomcat in the startup screen as shown above for more configuration changes.

Managing Tomcat

For security, access to the manager webapp is restricted. Users are defined in:


In Tomcat 8.0 access to the manager application is split between different users.

Release Notes


Migration Guide

Security Notices


Tomcat 8.0 Documentation

Tomcat 8.0 Configuration

Tomcat Wiki

Find additional important configuration information in:


Developers may be interested in:

In case of any ©Copyright or missing credits issue please check CopyRights page for faster resolutions.

4 Responses

  1. rezgar says:

    thanks so much it works now .

  2. hussam says:

    thanks sir but it not work still now

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.