LINUX环境下,RH9,JDK已经安装完成,环境也设置好.
TOMCAT解压到/USR/LOCAL/TOMCAT目录下,
JDK在/USR/JAVA/JDK1.6.0
JDK已经安装成功,运行 java -version有版本说明出来
启动TOMCAT时出错,出错信息:
cannot find usr/local/tomcat/bin/setclasspath.sh
this file is needed to run this program
注:在该目录下,有setclasspath.sh文件呀,
etc/profile加了以下内容
export JAVA_HOME=usr/java/jdk1.6.0
export CLASSPATH=.JAVA_HOME/libJAVA_HOME/jre/lib
export PATH=$JAVA_HOME/binJAVA_HOME/jre/binPATH
export CATALINA_HOME=usr/local/tomcat
export TOMCAT_HOME=usr/local/tomcat
------解决方案--------------------
代码迷推荐解决方案:java环境变量设置,http://www.daimami.com/search?q=172921
------解决方案--------------------
你这个环境变量明显有问题啊,如 JAVA_HOME/lib:JAVA_HOME/jre/lib,这样的