码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2020-04-17 20:09:52      阅读:114      评论:0      收藏:0      [点我收藏+]

标签:添加   图片   either   ogr   tcl   自己   技术   tail   解决   

报错信息

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路径。

解决办法:打开tomcat的bin目录下面的setclasspath.sh,添加如下代码,路径修改为自己机器jdk和jre路径即可。

export JAVA_HOME=/home/soft/jdk1.8.0_171/
export JRE_HOME=/home/soft/jdk1.8.0_171/jre

技术图片

 

 

参考:https://blog.csdn.net/jeamking/article/details/7881196

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

标签:添加   图片   either   ogr   tcl   自己   技术   tail   解决   

原文地址:https://www.cnblogs.com/L237/p/12722076.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!