error: Linux下启动和关闭tomcat报错,如下图所示:
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
Neither the JAVA_HOME nor the …
异常现象:
jenkins 远程启动tomcat报错:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
解决方案:
在开始脚本前面添加java的变量
export JAVA_HOME/app/jdk1.8.0_144
export CLASSPATH.:$JAVA_HOME/lib/dt.ja…