How to Install Tomcat on Windows

This wikiHow teaches you how to install the Apache Tomcat web server environment on your computer, using a Windows PC. Tomcat allows you to run Java code with several specifications in an HTTP web server environment. You will first have to...
Part 1 of 2:

Installing Java JDK

  1. How to Install Tomcat on Windows Picture 1How to Install Tomcat on Windows Picture 1
    Open the Oracle website. Type or paste https://www.oracle.com into the address bar, and press Enter or Return on your keyboard.
    1. You will have to download, install, and configure JDK (Java Development Kit) in order to install and run Tomcat.
  2. How to Install Tomcat on Windows Picture 2How to Install Tomcat on Windows Picture 2
    Click the Downloads button next to "Top Actions." This button looks like a white, downward arrow in a blue circle on a quick menu bar. You can find it below the main showcase box on the welcome page.
  3. How to Install Tomcat on Windows Picture 3How to Install Tomcat on Windows Picture 3
    Scroll down and click Java SE in the Java section. You can find all the Java Standard Edition downloads here, including JDK, JRE, and Server JRE versions.
  4. How to Install Tomcat on Windows Picture 4How to Install Tomcat on Windows Picture 4
    Click the DOWNLOAD button below "JDK" or "Oracle JDK." This is a blue button on the right-hand side. It will open the available download versions.
    1. The newest release version will show up at the top of the "Java SE Downloads" page.
  5. How to Install Tomcat on Windows Picture 5How to Install Tomcat on Windows Picture 5
    Select Accept License Agreement at the top of the download links. All the download versions are listed at the bottom of the page. You can find the license agreement option at the top of this list.
    1. You'll have to accept the license agreement here in order to download a file.
  6. How to Install Tomcat on Windows Picture 6How to Install Tomcat on Windows Picture 6
    Click the blue download link next to your Windows version. This will download the installer file to your default Downloads folder.
    1. Some of the latest Oracle JDK versions only have 64-bit (x64) support for Windows.
    2. If you're using Windows in 32-bit version (x86), you may have to check several JDK/Oracle JDK versions on the Java SE page, and find one that's compatible with your system.
  7. How to Install Tomcat on Windows Picture 7How to Install Tomcat on Windows Picture 7
    Launch the JDK installer file on your computer. Find the installer file you just downloaded in your Downloads folder, and double-click on it to run the installer.
  8. How to Install Tomcat on Windows Picture 8How to Install Tomcat on Windows Picture 8
    Click Next in the installer window. This will take you to the installation preferences on the next step.
    1. Make sure to note down the folder directory of the installation location here. You can find it near the bottom-left corner.
    2. The installation location is usually "C:Program FilesJavajdk1.8.*" with the latest version and release number.
  9. How to Install Tomcat on Windows Picture 9How to Install Tomcat on Windows Picture 9
    Click Next. This will start your installation, and install Java Development Kit (JDK) on your computer.
    1. If you're prompted during the install, click Next to confirm the installation location.
  10. How to Install Tomcat on Windows Picture 10How to Install Tomcat on Windows Picture 10
    Click the Close button. At the end of your installation, click this button to close the installer window.
  11. How to Install Tomcat on Windows Picture 11How to Install Tomcat on Windows Picture 11
    Open the Java installation location on your computer. Double-click This PC on your desktop or Start menu, and find the Java folder in your Program Files.
    1. If you install JDK to a different location, make sure to open the same location as your install location from the installation wizard.
  12. How to Install Tomcat on Windows Picture 12How to Install Tomcat on Windows Picture 12
    Open the jdk folder in your files. You will usually have two folders named jdk and jre in your Java folder. Double-click the JDK folder to open it.
  13. How to Install Tomcat on Windows Picture 13How to Install Tomcat on Windows Picture 13
    Copy the folder directory for the JDK folder. Select the directory from the address bar at the top of the File Explorer window, right-click on it, and select Copy on the menu.
  14. How to Install Tomcat on Windows Picture 14How to Install Tomcat on Windows Picture 14
    Right-click This PC on your desktop. The "This PC" icon looks like a desktop computer. This will open your right-click options on a drop-down menu.
  15. How to Install Tomcat on Windows Picture 15How to Install Tomcat on Windows Picture 15
    Click Properties on the right-click menu. This will open your system information in a new window.
  16. How to Install Tomcat on Windows Picture 16How to Install Tomcat on Windows Picture 16
    Click Advanced system settings on the left-menu. This is a blue link on the left-hand side of the System window. It will open a new dialogue box titled "System Properties."
  17. How to Install Tomcat on Windows Picture 17How to Install Tomcat on Windows Picture 17
    Click the Advanced tab. You can change your performance, user profile, and other advanced settings here.
  18. How to Install Tomcat on Windows Picture 18How to Install Tomcat on Windows Picture 18
    Click the Environment Variables button. This button is near the bottom-right corner of the dialogue box. It will open a new window.
  19. How to Install Tomcat on Windows Picture 19How to Install Tomcat on Windows Picture 19
    Click the New button under the "System variables" section. This section is the second box at the bottom of the Environment Variables window. You can create a new system variable here.
  20. How to Install Tomcat on Windows Picture 20How to Install Tomcat on Windows Picture 20
    Type JAVA_HOME into the "Variable name" field. This will be the name of your new system variable.
  21. How to Install Tomcat on Windows Picture 21How to Install Tomcat on Windows Picture 21
    Paste the copied folder directory into the "Variable value" field. Right-click the bottom field, and select paste to paste the copied folder directory.
  22. How to Install Tomcat on Windows Picture 22How to Install Tomcat on Windows Picture 22
    Click OK. This will add your new system variable.
  23. How to Install Tomcat on Windows Picture 23How to Install Tomcat on Windows Picture 23
    Select Path in the "System variables" section. Scroll down the variable list in the bottom box, and click Path to select it.
  24. How to Install Tomcat on Windows Picture 24How to Install Tomcat on Windows Picture 24
    Click the Edit button. This will allow you to edit the contents of the Path variable in a new dialogue box.
  25. How to Install Tomcat on Windows Picture 25How to Install Tomcat on Windows Picture 25
    Click New in the new dialogue box. It's in the upper-right corner of the window. This will add a new entry at the bottom of the list.
  26. How to Install Tomcat on Windows Picture 26How to Install Tomcat on Windows Picture 26
    Type %JAVA_HOME%bin into the new entry field. This will be added to the Path variable in your system.
  27. How to Install Tomcat on Windows Picture 27How to Install Tomcat on Windows Picture 27
    Click OK. This will save the new contents of the Path variable.
  28. How to Install Tomcat on Windows Picture 28How to Install Tomcat on Windows Picture 28
    Click OK in the Environment Variables window. This will save your new environment variables.
  29. How to Install Tomcat on Windows Picture 29How to Install Tomcat on Windows Picture 29
    Click OK in the System Properties window. This will save and apply all your new settings.
    1. You are now ready to download and install the Tomcat files on your computer.
Part 2 of 2:

Installing Tomcat

  1. How to Install Tomcat on Windows Picture 30How to Install Tomcat on Windows Picture 30
    Open the Tomcat website in your internet browser. Type or paste http://tomcat.apache.org into your browser's address bar, and press Enter or Return on your keyboard.
  2. How to Install Tomcat on Windows Picture 31How to Install Tomcat on Windows Picture 31
    Click Tomcat 9 on the left sidebar. You can find this option under the "Downloads" heading on a navigation menu on the left-hand side.
  3. How to Install Tomcat on Windows Picture 32How to Install Tomcat on Windows Picture 32
    Download 32-bit/64-bit Windows Service Installer under "Core." You can find this option in the "Binary Distributions" section at the bottom.
    1. If you're prompted, select a saving location for the installer file.
  4. How to Install Tomcat on Windows Picture 33How to Install Tomcat on Windows Picture 33
    Launch the installer file on your computer. Find the installer in your Downloads folder, and double-click on it to start the installation wizard.
  5. How to Install Tomcat on Windows Picture 34How to Install Tomcat on Windows Picture 34
    Click Next on the welcome page. This will open the License Agreement on a new page.
  6. How to Install Tomcat on Windows Picture 35How to Install Tomcat on Windows Picture 35
    Click the I Agree button. It's on the bottom-right corner of the installer window. This will let you choose the components you want to install on the next page.
  7. How to Install Tomcat on Windows Picture 36How to Install Tomcat on Windows Picture 36
    Select Full as your install type. Click the drop-down next to "Select the type of install," and select Full here to install all the Tomcat components, including documentation and app shortcuts.
    1. Optionally, you can click and uncheck the components you don't want to install on the list here.
  8. How to Install Tomcat on Windows Picture 37How to Install Tomcat on Windows Picture 37
    Click Next. This will confirm your selection, and take you to the configuration page.
  9. How to Install Tomcat on Windows Picture 38How to Install Tomcat on Windows Picture 38
    Click Next on the configuration page. Unless you're customizing your ports, click Next here to proceed.
    1. Optionally, you can set an admin user name and password for your Tomcat service at the bottom here.
    2. You will have to specify the Java SE location on your computer on the next page.
  10. How to Install Tomcat on Windows Picture 39How to Install Tomcat on Windows Picture 39
    Click the three-dot button next to the text field. When you're prompted to specify the location of your JRE (Java Runtime Environment), click this button to select your file location.
  11. How to Install Tomcat on Windows Picture 40How to Install Tomcat on Windows Picture 40
    Select the jre folder in your Java folder. You can usually find your Java folder in Program Files under This PC.
  12. How to Install Tomcat on Windows Picture 41How to Install Tomcat on Windows Picture 41
    Click OK. This will confirm your selection, and copy the folder directory to the text field in the installer.
  13. How to Install Tomcat on Windows Picture 42How to Install Tomcat on Windows Picture 42
    Click Next in the installer. You can select the install location on the final page in the next step.
  14. How to Install Tomcat on Windows Picture 43How to Install Tomcat on Windows Picture 43
    Click the Install button. This will start your installation. You can track the install on a green progress bar here.
    1. Optionally, you can click Browse before beginning installation, and set a custom location for your Tomcat install.
  15. How to Install Tomcat on Windows Picture 44How to Install Tomcat on Windows Picture 44
    Click Finish on the last page. When your Tomcat setup is finished, click this button to close the installer.
  16. How to Install Tomcat on Windows Picture 45How to Install Tomcat on Windows Picture 45
    Press the Win+R Windows and "R" keys on your keyboard. Make sure to press both buttons at the same time. This will open the "Run" window.
  17. How to Install Tomcat on Windows Picture 46How to Install Tomcat on Windows Picture 46
    Type services.msc in the Run window. You can check all your running and paused system services here.
  18. How to Install Tomcat on Windows Picture 47How to Install Tomcat on Windows Picture 47
    Right-click Apache Tomcat on the list. This will open your right-click options on a drop-down.
  19. How to Install Tomcat on Windows Picture 48How to Install Tomcat on Windows Picture 48
    Select Properties on the right-click menu. This will open a new dialogue box.
  20. Click the Start button under "Service status." This will take a few seconds, and start the Tomcat service on your computer.
How to Install Tomcat on Windows Picture 49How to Install Tomcat on Windows Picture 49
3.5 ★ | 2 Vote