troubles with tomcat 4.0.3
843840Apr 2 2002 — edited Apr 3 2002i'm new to servlets and can't get tomcat 4.0.3 to work for the life of me.
i was wondering it someone out there would be able to give me a hand.
no matter how i've tried to add the JAVA_HOME variable, i keep getting this error when i try to run startup.bat out of the directory: E:\jakarta-tomcat-4.0.3-src\catalina\src\bin
the error i get is...
the JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Label not found
here's the startup.bat file....would someone be able to show me how and where i set the variable if all my .jar files are stored in the directory E:\
@echo off
if "%OS%" == "Windows_NT" setlocal
rem ---------------------------------------------------------------------------
rem Start script for the CATALINA Server
rem
rem $Id: startup.bat,v 1.3.4.2 2002/01/30 18:10:40 patrickl Exp $
rem ---------------------------------------------------------------------------
rem Guess CATALINA_HOME if not defined
if not "%CATALINA_HOME%" == "" goto gotHome
set CATALINA_HOME=.
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
set CATALINA_HOME=..
:gotHome
if exist "%CATALINA_HOME%\bin\catalina.bat" goto okHome
echo The CATALINA_HOME environment variable is not defined correctly
echo This environment variable is needed to run this program
goto end
:okHome
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat
rem Check that target executable exists
if exist "%EXECUTABLE%" goto okExec
echo Cannot find %EXECUTABLE%
echo This file is needed to run this program
goto end
:okExec
rem Get remaining unshifted command line arguments and save them in the
set CMD_LINE_ARGS=
:setArgs
if ""%1""=="""" goto doneSetArgs
set CMD_LINE_ARGS=%CMD_LINE_ARGS% %1
shift
goto setArgs
:doneSetArgs
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
:end
i'm using jbuilder3 to compile and i'm also using windows 98 SE
thanks a lot
Andy