How do I install Apache Tomcat as a Windows service?
Sarah Duran
Updated on April 29, 2026
How do I install Apache Tomcat as a Windows service?
Installing Tomcat as a Windows Service
- Open a command prompt. Run C:\Windows\System32\cmd.exe as Administrator.
- Change directories to the \tomcat\apache-tomcat\bin directory.
- Type the following command: service. bat install .
How will you install Tomcat server in your system?
Installing Tomcat
- Go to the Tomcat Web page.
- Click on Binaries under the Download label on the left side of the page.
- Scroll down until you see Tomcat 4.1.
- Click on the link ending with exe (e.g. 4.1.
- Download and run the exe file.
- I suggest you install Tomcat at c:\tomcat4.
Can Tomcat run on Windows Server?
If you are running a 32-bit version of Windows, you MUST use a 32-bit distribution of Apache Tomcat, as well as a 32-bit JDK. If you are using a 64-bit system, you can technically run either a 32- or 64-bit distribution, as long as the bit architecture of the JDK you have installed matches your Tomcat distribution.
What are the steps to install and configure the Tomcat server?
How to Install Apache Tomcat (In 4 Steps)
- Step 1: Download the Prerequisite Software. Before you start downloading Tomcat, you will first need either Java Development Kit (JDK) or Java Runtime Environment (JRE).
- Step 2: Choose Your Components.
- Step 3: Check Your Configuration.
- Step 4: Test Tomcat Out.
How do I install Tomcat 9 as a service?
To install an instance, first set the CATALINA_HOME environment variable to the name of the Tomcat installation directory. Then create a second environment variable CATALINA_BASE and point this to the instance folder. Then run “service. bat install” command specifying a service name.
How do I start Tomcat EXE?
How to Start and Stop Apache Tomcat from the Command Line (…
- Start a Command Prompt from the Start menu.
- Navigate to the Tomcat bin directory, e.g., c:/Tomcat8/bin :
- Type in startup and then hit Enter to execute the Tomcat server start up script:
Where is the Tomcat installation directory on Windows?
The Tomcat configuration files are located in the “ conf ” sub-directory of your Tomcat installed directory, e.g. ” c:\myWebProject\tomcat\conf ” (for Windows) or ” ~/myWebProject/tomcat/conf ” (for Mac OS X).
Does Tomcat need JDK or JRE?
Tomcat does not require a JDK. It needs a JRE only. JSP compilation is done by the bundled Eclipse compiler.
How do I download Apache Tomcat server?
Navigate to Apache Tomcat site at and n the left-hand Download menu, click the latest available Tomcat version. Locate the Binary Distributions area and in the Core list click the 32-bit/64-bit Windows Service Installer link. Save the apache-tomcat exe file in a temporary folder.
Where is Tomcat installation directory?
Installing on Windows
- Specify the Tomcat installation location.
- Select to start Tomcat as a service, and then select the port to run on. The default port is 8080.
- Add the Java mail.jar and activiation.jar files to the ./tomcat/common/lib directory. The mail and activation jar files can be found at:
How do I start Tomcat 9 on Windows Server?
To make sure the service is running, go to the Windows startup menu and type services. cmd. From the list of available services, find the Apache Tomcat 9 service, right-click on the service name, select Start, and make sure the service starts successfully.