Install Tomcat into Fedora Core 2
I just install J2SDK 1.4.2 and tomcat 5.0.28 into the Fedora Core 2; and modified the /etc/profile is like as following:
export JAVA_HOME=/usr/java/j2sdk1.4.2_06
CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export CLASSPATH
export CATALINA_BASE=/usr/tomcat
export CATALINA_HOME=/usr/tomcat
PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
and reboot the machine; Finally try startup the tomcat "/usr/tomcat/bin/startup.sh. It prompted:
[root@localhost bin]# startup.sh
-bash: startup.sh: command not found
How do I fix it? I sure that the Java already installed, coz i check "echo $JAVA_HOME" it shown the path correctly! and type from console "javac" it shown parameter correctly.
Help,
|