Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
\[http://blog.eukhost.com/2006/09/30/apache-tomcat Apache Tomcat Installation Guide\]

How do I get Tomcat to start when it says it can't find the file 'setclasspath.sh'?

If Tomcat was working fine the first few times after installation but suddenly refuses to start up and gives the following error message:

No Format

$ ./startup.sh
Cannot find /path/to/tomcat/bin/setclasspath.sh
This file is needed to run this program

Then all you need to do is to include the complete paths for the BASEDIR and CATALINA_HOME variables in the files setclasspath.sh and catalina.sh respectively.

This should be done even if CATALINA_HOME has been defined and exported previously on the command line and/or in /etc/profile as well. Moreover, this error message persists even though the file setclasspath.sh is present in Tomcat's bin directory.

No Format

$ echo "BASEDIR=/path/to/tomcat" >> setclasspath.sh
$ echo "CATALINA_HOME=/path/to/tomcat" >> catalina.sh