我想在Mac OS安裝apache-tomcat的-6.0.35 X 10.9,但我有這個錯誤在catalina.out的當我運行startup.sh:的Tomcat 6.0.35安裝在Mac OS X 10.9小牛
/Library/Tomcat/Home/bin/catalina.sh: line 375: /Library/Java/Home/bin/java: No such file or directory
因此,服務器沒有啓動。
以下是我在終點站下車(慶典):
myMac:bin administrator$ ./startup.sh
Using CATALINA_BASE: /Library/Tomcat/Home
Using CATALINA_HOME: /Library/Tomcat/Home
Using CATALINA_TMPDIR: /Library/Tomcat/Home/temp
Using JRE_HOME: /Library/Java/Home
Using CLASSPATH: /Library/Tomcat/Home/bin/bootstrap.jar
有什麼建議?
如錯誤消息中所示,它無法在您的計算機上找到Java,在'catalina.sh'文件中定義'JAVA_HOME',例如'export JAVA_HOME =/usr/local/java' – jdiver
<< export JAVA_HOME =/Library/Java /首頁 導出CATALINA_HOME =/Library/Tomcat /首頁>>>被輸入.profile文件 – user3663748