LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot start Tomcat and get "The BASEDIR environment variable is not defined correctl (http://www.linuxquestions.org/questions/linux-software-2/cannot-start-tomcat-and-get-the-basedir-environment-variable-is-not-defined-correctl-819741/)

thomas2004ch 07-14-2010 04:43 AM

Cannot start Tomcat and get "The BASEDIR environment variable is not defined correctl
 
I installed the Tomcat 5.5.23 under "/opt/jboss/tomcat". Here is also the home for user 'tomcat'.

The first time I started the Tomcat I got error message:
Code:

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

Then I added following codes in the "catalina.sh":
Code:

JAVA_HOME="/usr/local/jdk1.6.0"
As I started the Tomcat again I got:
Code:

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

Where and how should set the JAVA_HOME?

thomas2004ch 07-14-2010 05:07 AM

I solved the problem now. Simply make all .sh files executable.


All times are GMT -5. The time now is 02:19 AM.