Open In App

How to Install Apache Tomcat on Windows?

Last Updated : 19 Jan, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Apache Tomcat which is short for “Tomcat” is a free, open-source Java Servlet, Java Expression Language, JavaServer Pages, and WebSocket implementation. Tomcat is an HTTP web server that basically runs Java code in a “pure Java” environment. Here, we will see how to install Tomcat 10 on Windows 10 from Zip Archive. Requirements are Java 8 or above must be already installed. Make sure Windows Firewall allows Tomcat application.   

Installing Apache Tomcat on Windows

Step 1: We need to first install the Tomcat 10 zip file from this website. On the website, select the 64-bit Windows zip (PGP, sha512) in the Core section to start the download process for the Tomcat zip file. 

installing-tomcat-10-zip-file

 

Step 2: Check If JDK Is Installed. Open Command Prompt and enter the following commands

java -version
javac -version

jdk-installation

 

If JDK is not installed on your computer, install JDK. In the above picture, we can see JDK is already installed on our computer. 

Step 3: Unzip Tomcat 10 Zip File. Go to the location where you have downloaded the Tomcat 10 zip file. Right-click on the apache tomcat file place the cursor on 7-Zip and click on Extract Here to extract the folder.  

unzipping-tomcat

 

Step 4: Creating JAVA_HOME Variable. Click Start then in the search bar, search for “Edit the system environment variables” and click on it. The following System Properties box will open. Select Environment Variables in the box. 

Creating-JAVA-HOME-Variable

 

On clicking Environment Variables the following box will open.

environmental-variables

 

Step 5: We have to create a JAVA_HOME variable and insert the path of the JDK file stored in our computer, which will be shown below. So select New from the System variables in the above picture. A New System Variable box will be opened where we will have to fill in the Variable name and Variable value.

new-system-variable-box

 

Step 6: Go to the location where you have stored the contents of the JDK file in My Computer or PC. Copy the root path of the location of the JDK file as shown below.

copying-root-path-location

 

Step 7: Paste the JDK path from the above picture into the Variable value field and in the Variable name field, give the name JAVA_HOME as shown below. 

pasting-jdk-path

 

Step 8: Check the Working of Tomcat. Open the extracted apache tomcat file. We will see all the following files in them. Among them open the batch file named “startup”. 

checking-working-of-tomcat

 

Step 9: Check if the Startup Windows Batch File is running properly. 

checking-batch-file

 

By default, the server port number is 8080.

Step 10: Successful Installation of Tomcat. Our next step is to open an internet browser like Google and type in the address 

http://localhost:8080

Then click enter and the following browser will appear suggesting the successful installation of Apache Tomcat. 

installed-apache-tomcat

 



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads