How to Install Apache Tomcat on Windows?
Last Updated :
19 Jan, 2023
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.
Step 2: Check If JDK Is Installed. Open Command Prompt and enter the following commands
java -version
javac -version
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.
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.
On clicking Environment Variables the following box will open.
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.
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.
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.
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".
Step 9: Check if the Startup Windows Batch File is running properly.
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.
Similar Reads
How to Install Apache Maven on Windows? Apache Maven is an automation tool. The tool is written in Java. It was initially released on 13 July 2004. It is developed by the Apache software foundation. It is part of the Jakarta Project. It is working on two aspects: how software is built, and its dependencies. It was created by Jason van Zyl
3 min read
How to Install PHP on Apache in Windows? PHP is a Hypertext Preprocessor, earlier it known as Personal Home Page. It is an open-source server (available for free) side scripting language (everything is implemented on the webserver) that is embedded into HTML and used for web development. PHP script starts with <?PHP and ends with?>.
4 min read
How to Install Apache OpenOffice on Windows? Apache OpenOffice is an open-source office suite. It provides free applications for spreadsheets, word processing, presentations, graphics, databases, etc. It was initially released on 1 May 2002 and developed by Sun Microsystems (1999â2009), Oracle Corporation (2010â2011). It is easy to use and ava
3 min read
How to Install Apache JMeter on Windows? The Apache JMeter⢠application is open-source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other test functions. It can be used to simulate a heavy load on a
2 min read
How to Install Apache Tomcat 8 on Linux? Apache Tomcat (short for "Tomcat") is a free and open-source Java Servlet, JavaServer Pages, Java Expression Language, and WebSocket implementation. [two] Tomcat is an HTTP web server that runs Java code in a "pure Java" environment. Tomcat is developed and maintained by a free group of developers u
2 min read