Thursday, April 29, 2010

How to fix "The BASEDIR environment variable is not defined correctly" issue when starting tomcat 6

If you have defined the CATHALINA_HOME ,CATHALINA_BASE ,JAVA_HOME correctly , but following error will be occurred.

The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program

Finally, i  found the following solution.

We need to change the permission type of all the sell script files in tomcat_home/bin directory to "executable" mode.
Using  the following command we can easily change it.
apache-tomcat-6.0.26/bin$ chmod +x *.sh