阿里云centos7 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说明linux在你的window上面找不到你的jdk和jre的存放路径 第一种解决方法: 指令:进入 存放tomcat的文件下面,/home/pan/tomcat/bin 编辑:vim setclasspath.sh,加入你的jdk路径和jre路径
第二种解决方法 vim ~/.bash_profile,加入以下代码
|
|