启动tomcat里的start.sh / start.bat
异常信息: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
解决办法 :
打开setclasspath.bat / setclasspath.sh
在22行里面添加内容:
set JAVA_HOME=jdk路径
set JRE_HOME=jre路径
windows用set, linux用export ,保存后启动正常