1、定制JDK路径
修改tomcat下bin目录中的setclasspath.sh文件:
在
# -----------------------------------------------------------------------------
# Set JAVA_HOME or JRE_HOME if not already set, ensure any provided settings
# are valid and consistent with the selected start-up options and set up the
# endorsed directory.
# -----------------------------------------------------------------------------
下加入两行代码:
export JAVA_HOME = /路径/jdk1.8.0_121
export JRE_HOME = /路径/jdk1.8.0_121/jre
2、取消定制JDK路径
将加入的代码删除即可