Tomcat will use the system's environment variables to find JAVA_HOME and JRE_HOME by default. But sometimes we need different versions of JDK to coexist.
You can set JAVA_HOME and JRE_HOME at the front of ${TOMCAT_HOME}/bin/catalina.bat.
For example:
1 |
The above is the detailed content of How to specify JDK path in JAVA. For more information, please follow other related articles on the PHP Chinese website!