The BASEDIR environment variable is not defined correctly.This environment variable is needed to run this program.
If you run in to the above while trying to run Tomcat make sure both $CATALINA_HOME and $JAVA_HOME are set properly. If it still doesn’t work try changing the permissions as following.
chmod +x ./setclasspath.sh
chmod +x ./startup.sh
chmod +x ./shutdown.sh