Set JDK Environment Variable in Tomcat
To set up the JDK environment variable for Tomcat, you can follow these steps:
- trash can
- trash can
- catalina.bat file
- the shell script catalina.sh
- JRE_HOME must be set.
- “Clear the JRE_HOME variable.”
- Set the “JRE_HOME” variable to the installation path of JDK.
- The directory for Java development kit version 1.8.0_121 is located in the Program Files folder.
- Set the Java Runtime Environment (JRE) home directory to “C:\Program Files\Java\jdk1.8.0_121”.
- Save and close the file.
- Start Tomcat with the specified JDK environment, ensuring it functions correctly.
Please note that the above steps are based on a Windows system with Tomcat 9. Adjust accordingly for different versions and operating systems.