Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem while starting Tomcat 4.0:BASEDIR

 
Hemal Mehta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic