This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problem while starting Tomcat 4.0:BASEDIR