Tomcat 指定使用的jdk
找到Tomcat的bin目录,在setclasspath文件开头加入如下语句:
Windows(修改setclasspath.bat)
set JAVA_HOME=C:/Program Files/Java/jdk1.8.0_71
set JRE_HOME=C:/Program Files/Java/jdk1.8.0_71/jre
Linux(修改setclasspath.sh)
export JAVA_HOME=/usr/local/java/jdk1.8.0_71
export JRE_HOME=/usr/local/java/jdk1.8.0_71/jre