On Linux, the upgrade process will point you to the correct version of Java to download.On Windows and OS X, the upgrade package has the required version of Java bundled with it.
To know which JRE version is used for Tomcat, go to the following URL:localhost:8080/manager/status And look at the JVM Version column: This way is very simple to implement but it works only for Tomcat installed from a zip distribution (in contrast to Tomcat installed as a service).
), or registry entries (on Windows) or the JRE is specified during installation (Tomcat is installed as a service).
Sometimes we need to change the default JRE for Tomcat, either for testing purposes or to run Tomcat under a targeted version of JRE.
One advantage of this way is that it doesn’t affect the system environment variables.
For a Tomcat installation which is installed as a service (on Windows), we can change the version of JRE that runs Tomcat by configuring the Java Virtual Machine setting in the Tomcat service manager program (e.g.
The last section outlines setting the JAVA_HOME environment variable To follow this tutorial, you will need: for yes to confirm the installation.