我是靠谱客的博主 潇洒大象,这篇文章主要介绍Linux下tomcat启动Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of...,现在分享给大家,希望可以做个参考。

在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

原因:找不到jdk或者jre路径。

解决办法:在setclasspath.bat的开头声明环境变量,打开tomcat的bin目录下面的setclasspath.sh,添加红色部分,路径修改为自己机器jdk和jre路径即可。

 export JAVA_HOME=/opt/zimbra/jdk1.6.0_31
export JRE_HOME=/opt/zimbra/jdk1.6.0_31/jre

 

转载于:https://www.cnblogs.com/ainihaozhen/p/8366723.html

最后

以上就是潇洒大象最近收集整理的关于Linux下tomcat启动Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of...的全部内容,更多相关Linux下tomcat启动Neither内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(81)

评论列表共有 0 条评论

立即
投稿
返回
顶部