How to Install Apache Tomcat on Windows 2022

How to Install Apache Tomcat on Windows 2022

Apache Tomcat was developed under the Jakarta Project to operate as a servlet container by Apache Software Foundation. Being written in Java, Apache Tomcat can work in any operating system that has the Java virtual machine. Moreover, Tomcat can operate as a Web server on its own and accommodate servlets and JSP. Although NGINX and Apache Web Server is more popular, Apache Tomcat can offer various specialized benefits to your Windows 2022 server.

In this tutorial, we’ll take a look at the process of installing Apache Tomcat onto your Windows 2022 server in 4 simple steps.

Step 1:
Install Install Java Development Kit (JDK)

Apache Tomcat is developed in Java. Therefore, you first need to download and install Java Development Kit on your Windows 2022 server to run it. Download the JDK files from the official download page on the Oracle website.

If you are running a 64-bit operating server on your Windows 2022 server, click on the Windows x64 link. Download the Windows x86 file if the operating system is 32-bit.

You need to create an Oracle account for downloading JDK, but it’s an intuitive and free process.

screenshot of Oracle site

Once the download is complete, launch the installer by double-clicking on it.

screenshot of Java SE Development kit 8 installation

Step 2:
Adding Java to Windows Environment Variables

For the smooth functioning of your Windows 2022 server, it is crucial to add Java to the Windows environment variables.

With that in mind, go to Start and search “Edit the system environment variables”. Click on the result. The System Properties window will appear open in the Advanced tab. Click on the Environment Variables option at the bottom.

screenshot of Environment Variables window

The Environment Variables window will appear. Create a new variable by clicking on New… with the name “JAVA_HOME”. In the address field, enter the address of the folder where JDK was installed (C:\Program Files\Java\jdk1.8.0_321).

screenshot of adding a new System Variable window

After that, create another environment variable “JAVA_JRE” and use the address of the folder which contains JRE (C:\Program Files\Java\jre1.8.0_321) in my case.

Step 3:
Install Apache Tomcat

Now that your Windows Server 2022 is all set with JDK configured, we can proceed to install Apache Tomcat. Go to the Apache Tomcat download page on the official website and download the latest Windows Service installer. The Version at the time of publication s 9.0.58.

screenshot of Apache Tomcat website

Once the download is completed, launch the installer file. Hit Next to continue.

screenshot of Apache Tomcat Setup

As you proceed, you will be asked to choose the components of Apache Tomcat that you wish to install. We recommend that you go with a full installation. However, you can choose according to your preferences.

Choose the components and hit Next.

Then, you need to set the configuration settings of Apache Tomcat on your Windows 2022 server. You can proceed with the default settings. All you need to do is to ensure that the ports mentioned in the configuration are free. Additionally, enter a username and password and hit Next to proceed.

screenshot of Apache Tomcat Setup: Configuration options

In the next stage of installation, select the path where JRE is installed on your Windows server.

Finally, you need to select the path where you want Tomcat to install. Hit Next and the installation will begin.

Wait for the installation to complete.

You will see the following screen when the installation is complete:

screenshot of Apache Tomcat Setup

Step 4:
Test Apache Tomcat

Now that you’ve successfully installed Apache Tomcat on your Windows 2022 server, we need to test it. To test whether Tomcat is properly running on your system or not, launch a web browser and go to the address: http://localhost:8080/. If the installation is successful, you will see the following page:

screenshot of Apache Tomcat website

Conclusion

And Voila! Apache Tomcat is up and running on your Windows Server 2022 in four simple steps. The installer is very intuitive and easy to use. Furthermore, the process that we’ve used installs Apache Tomcat as a Windows service. In other words, no additional configuration is required.

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, userna
2 min read
Avi Ilinsky
Avi Ilinsky
Hosting Expert

How To Set up a VSFTPD Server on an Ubuntu 16.04 VPS or Dedicated Server

Brief Description FTP data is usually insecure since information (usernames, pa
2 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to use phpMyAdmin to develop a website (without MySQL experience)

Brief description A web developer who is not well versed into coding websites f
2 min read
Idan Cohen
Idan Cohen
Marketing Expert

How to Install MySQL on a Windows Web Server Running Apache

This tutorial will show you how to install the MySQL database on a Windows serve
3 min read
Michael Levanduski
Michael Levanduski
Expert Hosting Writer & Tester
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top