ubuntu下启动tomcat问题

来源:互联网 发布:南京淘宝招聘网 编辑:程序博客网 时间:2024/06/06 14:00
ubuntu下启动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
 
先看Tomcat的startup.sh,它调用了catalina.sh。只要在catalina.sh的开头声明环境变量,打开tomcat的bin目录下面的setclasspath.sh(/usr/local/apache-tomcat-6.0.39/bin),路径自己修改。
JAVA_HOME=/usr/local/jdk1.8.0_05
JRE_HOME=/usr/local/jdk1.8.0_05/jre


0 0
原创粉丝点击