手机看片精品高清国产日韩,色先锋资源综合网,国产哺乳奶水91在线播放,乱伦小说亚洲色图欧洲电影

幫助中心 >  技術知識庫 >  云服務器 >  服務器教程 >  Linux JDK 環境變量配置Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

Linux JDK 環境變量配置Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

2024-01-03 15:08:03 6967

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和JRE_HOME環境變量都沒有定義,運行此程序至少需要其中一個環境變量)

image.png


解決方法:

找不到JAVA_HOME路徑,需要做以下變更:

找到啟動路徑所在的目錄:

vi /usr/local/apache-tomcat-7.0.55/bin/catalina.sh


注意:

如果忘記tomcat的安裝路徑,可以輸入以下命令查找…
#sudo find / -name *tomcat *


加入以下信息

添加:

export JAVA_HOME=JDK的安裝路徑
export JRE_HOME= JDK的安裝路徑/jre

提交成功!非常感謝您的反饋,我們會繼續努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: