*
The moose likes Tomcat and the fly likes Problem while starting Tomcat 4.0:BASEDIR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem while starting Tomcat 4.0:BASEDIR " Watch "Problem while starting Tomcat 4.0:BASEDIR " New topic
Author

Problem while starting Tomcat 4.0:BASEDIR

Hemal Mehta
Ranch Hand

Joined: Nov 16, 2000
Posts: 101
It says BASEDIR not set. What should I set it to?
C:\Program Files\Apache Tomcat 4.0\bin>rem Make sure prerequisite environment va
riables are set
C:\Program Files\Apache Tomcat 4.0\bin>if not "C:\JBuilder6\JDK1.3.1" == "" goto
gotJavaHome
C:\Program Files\Apache Tomcat 4.0\bin>if exist "C:\JBuilder6\JDK1.3.1\bin\java.
exe" goto okJavaHome
C:\Program Files\Apache Tomcat 4.0\bin>if not "" == "" goto gotBasedir
C:\Program Files\Apache Tomcat 4.0\bin>echo The BASEDIR environment variable is
not defined
The BASEDIR environment variable is not defined
C:\Program Files\Apache Tomcat 4.0\bin>echo This environment variable is needed
to run this program
This environment variable is needed to run this program
C:\Program Files\Apache Tomcat 4.0\bin>goto end
The system cannot find the batch label specified - end
Hemal Mehta
Ranch Hand

Joined: Nov 16, 2000
Posts: 101
Actually now I got rid of teh BASEDIR problem by defining it correctly. Howver when i start itat teh dos command prompt teh window just dispears. It doesn;t seem to start at all. How can I see where the problem is. When I try to shutdown, it gives an exception because may be it has not been started at all. Can anyone advise...
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Instead of double clicking the shortcut (or from the start menu) open a DOS window, browse to the bin directory and type in the startup command, and when the batch file errors out, the window will stay open.
 
jQuery in Action, 2nd edition
 
subject: Problem while starting Tomcat 4.0:BASEDIR
 
Similar Threads
startup.bat stops itself
Tomcat
Setting up the Java Web Services tutorial and Sun Java system appn server
how to redirect the tomcat (5.0) console output to a text file
Tomcat installation problems!