Linux JDK 環(huán)境變量配置Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
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環(huán)境變量都沒有定義,運(yùn)行此程序至少需要其中一個(gè)環(huán)境變量)

解決方法:
找不到JAVA_HOME路徑,需要做以下變更:
找到啟動(dòng)路徑所在的目錄:
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
會(huì)員登錄
賬號(hào)登錄還沒有賬號(hào)?立即注冊