Tomcat Upgrade to Java 17

With these instructions, you can upgrade the Java version to 17 quickly and easily.


Download Java

Download the Java 17 version from the original site.

Link: https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.4.1%2B1/OpenJDK17U-jdk_x64_windows_hotspot_17.0.4.1_1.msi

Install Java

Go to the download folder and execute the file. Then the wizard opens and guides you through the installation.


Make sure that the item JAVA_HOME is activated during the installation. This enters Java in the environment variables of the JAVA_HOME.


Next, confirm that all components of Java 17 are installed.


At the end of the installation, confirm completion.

Configure Java in Tomcat

Change the following settings in Tomcat 9 so that Java 17 is also used here.

    1. Open the Tomcat server configuration.
    2. In the Java tab, go to the extended Java Virtual Machine field and check which Java version is included. 
    3. Now look for the jdk directory of version 17 in the standard Java folder and select jvm.dll under bin/server/. Then click on "Apply".
    4. Now you can start the Tomcat.