java - 在 fedora 14 中运行 Tomcat

标签 java tomcat

我在我的系统(fedora 14)中下载并安装了 tomcat,当我尝试运行 tomcat 时出现错误,请告诉我哪里可能出错,以下是我的 .bash_profile 设置

# 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

最佳答案

去掉 CATALINA_ 变量中的最后一个斜杠。

关于java - 在 fedora 14 中运行 Tomcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7950986/

相关文章:

database - Tomcat 数据库连接泄漏

Tomcat 弹性与 Tomcat 和 Microsoft Azure

web-services - Tomcat 是否支持 TLS v1.2?

java - 强制急切初始化 Tomcat 处理的数据源

java - 打印列表中所有启用的项目

java - 即使在重新启动\重新安装服务后,jsessionid 也会被保存和使用

java - 当客户端关闭连接时,Spring StreamingResponseBody 请求线程未清理

java - 如何为 JTree 中的特定节点调用 DefaultTreeCellRenderer

java - 使用 JSTL 迭代列表内的集合

java - 在 Java 中向 watchable 添加 return 语句