Whether you are running JDK11 or JDK17 (both are actively supported), you probably want to have the latest version of this JDK installed to ensure any known security vulnerabilities have been addressed.
The problem with this is managing this process manually can take a significant amount of time from an administration perspective.
Thankfully, we’ve created a small utility that can either be run interactively or put on a schedule. When this process runs, it will identify what version of JDK you are running and install the latest minor version of the JDK. It will then update the necessary Tomcat configurations to point to this latest version.
Download and install this file on your m-Power server. Unzip this file.
Interactive Execution
Execute the bat file on the Windows server in Administrator mode. On Linux, execute the shell file.
Scheduling
The readme file has full information but an important detail that cannot be overlooked is that when scheduling ensure you are passing the /yes flag as this will instruct the program to not pause or prompt the user. Since this is being scheduled, any prompt or pause would cause the system to fail.