The BASEDIR environment variable is not defined
This environment variable is needed to run this program
If the preceding error message is spewed up while starting tomcat then the resolution is to make sure of these three things:
- the scripts in the bin folder have execute permissions set.
- The CATALINA_HOME environment points to the right tomcat installation
- The JAVA_HOME is properly set.