Tomcat specify a particular java

Tomcat specify a particular java

Producer: dedication

After installing Tomcat, go to the bin directory, find setclasspath.bat or setclasspath.sh file, add the following before the file

Windows:
set JAVA_HOME=D:\java\jdk1.7
set JRE_HOME=D:\java\jdk1.7\jre

Linux:
JAVA_HOME=/home/jdk1.8/
JRE_HOME=/home/jdk1.8/jre

Note: The specific path based on actual condition java

 

Guess you like

Origin www.cnblogs.com/zhangquan-yw/p/12362483.html