Deepin Linux中Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one

Deepin Linux中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

解决办法

原因是找不到JAVA_HOME路径,需要做以下变更:
找到启动路径所在的目录:

cd bin/
vi catalina.sh

加入以下信息:

export JAVA_HOME=/usr/local/include/java/jdk1.8.0_60
export JRE_HOME=/usr/local/include/java/jdk1.8.0_60/jre

注意

【此处是你自己jdk的安装路径

最后启动成功

在这里插入图片描述

发布了29 篇原创文章 · 获赞 21 · 访问量 6018

猜你喜欢

转载自blog.csdn.net/Lance_welcome/article/details/97479335
今日推荐