2011-10-31 67 views
0

我下載並在我的系統安裝了Tomcat(Fedora 14的),當我嘗試到Tomcat我得到一個錯誤運行,請告訴我可能是錯的,下面是我的.bash_profile設置在Fedora中運行Tomcat 14

# User specific environment and startup programs 
export PATH=$PATH:/usr/bin 

#java 1.7 
export JAVA_HOME=/home/harsha/Applications/jdk1.7.0 
export JDK_HOME=/home/harsha/Applications/jdk1.7.0 
export JRE_HOME=/home/harsha/Applications/jdk1.7.0 

#maven 
export M2_HOME=/home/harsha/Applications/apache-maven-2.2.1 
export M2=$M2_HOME/bin 

#Ant 
export ANT_HOME=/home/harsha/installedApps/apache-ant-1.8.2/ 

#tomcat 
export CATALINA_BASE=/home/harsha/Applications/apache-tomcat-7.0.22/ 
export CATALINA_HOME=/home/harsha/Applicaations/apache-tomcat-7.0.22/ 
export CATALINA_TMPDIR=/home/harsha/Applications/apache-tomcat-7.0.22/temp 



export PATH=$HOME/bin:$M2:$JAVA_HOME/bin:$JDK_HOME/bin:$JRE_HOME/bin:$PATH 

,當我嘗試運行./startup.sh我獲得以下錯誤,

Cannot find /home/harsha/Applications/apache-tomcat-7.0.22//bin/setclasspath.sh 
This file is needed to run this program 
+1

你真的不應該設置CATALINE_XXX env變量,讓Tomcat處理這些變量。 – nos

回答

0

得到的CATALINA_變量去掉最後的斜線的。