Home >Java >javaTutorial >How to specify JDK path in JAVA

How to specify JDK path in JAVA

PHPz
PHPzforward
2023-05-05 11:19:061527browse

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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete