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 install and configure Java Development Kit (JDK) on your computer to install Tomcat.

Part 1
Part 1 of 2:

Installing Java JDK

  1. 1
    Open the Oracle website. Type or paste https://www.oracle.com into the address bar, and press Enter or Return on your keyboard.
    • You will have to download, install, and configure JDK (Java Development Kit) in order to install and run Tomcat.
  2. 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.
    Advertisement
  3. 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. 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.
    • The newest release version will show up at the top of the "Java SE Downloads" page.
  5. 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.
    • You'll have to accept the license agreement here in order to download a file.
  6. 6
    Click the blue download link next to your Windows version. This will download the installer file to your default Downloads folder.
    • Some of the latest Oracle JDK versions only have 64-bit (x64) support for Windows.
    • 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. 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. 8
    Click Next in the installer window. This will take you to the installation preferences on the next step.
    • Make sure to note down the folder directory of the installation location here. You can find it near the bottom-left corner.
    • The installation location is usually "C:\Program Files\Java\jdk1.8.*" with the latest version and release number.
  9. 9
    Click Next. This will start your installation, and install Java Development Kit (JDK) on your computer.
    • If you're prompted during the install, click Next to confirm the installation location.
  10. 10
    Click the Close button. At the end of your installation, click this button to close the installer window.
  11. 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.
    • If you install JDK to a different location, make sure to open the same location as your install location from the installation wizard.
  12. 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. 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. 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. 15
    Click Properties on the right-click menu. This will open your system information in a new window.
  16. 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. 17
    Click the Advanced tab. You can change your performance, user profile, and other advanced settings here.
  18. 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. 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. 20
    Type JAVA_HOME into the "Variable name" field. This will be the name of your new system variable.
  21. 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. 22
    Click OK. This will add your new system variable.
  23. 23
    Select Path in the "System variables" section. Scroll down the variable list in the bottom box, and click Path to select it.
  24. 24
    Click the Edit button. This will allow you to edit the contents of the Path variable in a new dialogue box.
  25. 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. 26
    Type %JAVA_HOME%\bin into the new entry field. This will be added to the Path variable in your system.
  27. 27
    Click OK. This will save the new contents of the Path variable.
  28. 28
    Click OK in the Environment Variables window. This will save your new environment variables.
  29. 29
    Click OK in the System Properties window. This will save and apply all your new settings.
    • You are now ready to download and install the Tomcat files on your computer.
  30. Advertisement
Part 2
Part 2 of 2:

Installing Tomcat

  1. 1
    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. 2
    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. 3
    Download 32-bit/64-bit Windows Service Installer under "Core." You can find this option in the "Binary Distributions" section at the bottom.
    • If you're prompted, select a saving location for the installer file.
  4. 4
    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. 5
    Click Next on the welcome page. This will open the License Agreement on a new page.
  6. 6
    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. 7
    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.
    • Optionally, you can click and uncheck the components you don't want to install on the list here.
  8. 8
    Click Next. This will confirm your selection, and take you to the configuration page.
  9. 9
    Click Next on the configuration page. Unless you're customizing your ports, click Next here to proceed.
    • Optionally, you can set an admin user name and password for your Tomcat service at the bottom here.
    • You will have to specify the Java SE location on your computer on the next page.
  10. 10
    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. 11
    Select the jre folder in your Java folder. You can usually find your Java folder in Program Files under This PC.
  12. 12
    Click OK. This will confirm your selection, and copy the folder directory to the text field in the installer.
  13. 13
    Click Next in the installer. You can select the install location on the final page in the next step.
  14. 14
    Click the Install button. This will start your installation. You can track the install on a green progress bar here.
    • Optionally, you can click Browse before beginning installation, and set a custom location for your Tomcat install.
  15. 15
    Click Finish on the last page. When your Tomcat setup is finished, click this button to close the installer.
  16. 16
    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. 17
    Type services.msc in the Run window. You can check all your running and paused system services here.
  18. 18
    Right-click Apache Tomcat on the list. This will open your right-click options on a drop-down.
  19. 19
    Select Properties on the right-click menu. This will open a new dialogue box.
  20. 20
    Click the Start button under "Service status." This will take a few seconds, and start the Tomcat service on your computer.
  21. Advertisement

About This Article

wikiHow Staff
Co-authored by:
wikiHow Staff Writer
This article was co-authored by wikiHow Staff. Our trained team of editors and researchers validate articles for accuracy and comprehensiveness. wikiHow's Content Management Team carefully monitors the work from our editorial staff to ensure that each article is backed by trusted research and meets our high quality standards. This article has been viewed 32,331 times.
How helpful is this?
Co-authors: 4
Updated: May 30, 2021
Views: 32,331
Article SummaryX

1. Install and configure Java JDK.
2. Download the Tomcat 9 installer from https://tomcat.apache.org/download-90.cgi.
3. Launch the installer.
4. Click Next, and then I Agree.
5. Select the Full install, and click Next twice.
6. Click the three-dot button to specify JRE location.
7. Select your jre folder, and click OK.
8. Click Next, and then Install.
9. Click Finish.

Did this summary help you?
Advertisement