I'm running Tomcat on Windows 98 and I can't get to my localhost:8080 =
page. Please take a look at my batch file. Thanks!

Rocknation

@echo off
rem A batch file to start/stop tomcat server.

rem This batch file written and tested under Windows NT
rem Improvements to this file are welcome

rem Guess TOMCAT_HOME if it is not present

SET JAVA_HOME=3Dc:\jdk1.3.1
SET TOMCAT_HOME=3Dc:\tomcat
SET PATH=3D%JAVA_HOME%\bin

if not "%TOMCAT_HOME%" =3D=3D "c:\tomcat" goto gothome

SET TOMCAT_HOME=3D
if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome

SET TOMCAT_HOME=3D.
if exist %TOMCAT_HOME%\bin\tomcat.bat goto gothome

SET TOMCAT_HOME=3D..
echo Unable to determine the value of TOMCAT_HOME.

goto eof

:gothome

rem Set up the CLASSPATH that we need

set cp=3D%CLASSPATH%

set CLASSPATH=3D.
set CLASSPATH=3D%TOMCAT_HOME%\classes
set CLASSPATH=3D%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
set CLASSPATH=3D%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
set CLASSPATH=3D%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
set CLASSPATH=3D%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
set CLASSPATH=3D%CLASSPATH%;%JAVA_HOME=3Dc:\jdk1.3.1%\lib\tools.jar

if "%cp%" =3D=3D "" goto next

rem else
set CLASSPATH=3D%CLASSPATH%;%cp%

:next
if "%1" =3D=3D "start" goto startServer
if "%1" =3D=3D "stop" goto stopServer
if "%1" =3D=3D "run" goto runServer
if "%1" =3D=3D "env" goto setupEnv
if "%1" =3D=3D "ant" goto runAnt
if "%1" =3D=3D "jspc" goto runJspc

echo Usage:

echo         start - start tomcat in a separate window
echo         run   - start tomcat in the current window
echo         env   - setup the environment for tomcat
echo         stop  - stop tomcat
echo         ant   - run ant with tomcat context
echo         jspc  - run jsp pre compiler
goto cleanup

:startServer
echo Starting tomcat in new window
echo Using classpath: %CLASSPATH%
start java %TOMCAT_OPTS% -Dtomcat.home=3D"%TOMCAT_HOME%" =
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup

:runServer
rem Start the Tomcat Server
echo Using classpath: %CLASSPATH%
java %TOMCAT_OPTS% -Dtomcat.home=3D"%TOMCAT_HOME%" =
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup

:stopServer
rem Stop the Tomcat Server
echo Using classpath: %CLASSPATH%
java %TOMCAT_OPTS% -Dtomcat.home=3D"%TOMCAT_HOME%" =
org.apache.tomcat.startup.Tomcat -stop %2 %3 %4 %5 %6 %7 %8 %9
goto cleanup
goto cleanup

:runAnt
rem Run ant
set CLASSPATH=3D%CLASSPATH%;%TOMCAT_HOME%\lib\ant.jar
echo Using classpath: %CLASSPATH%
java %ANT_OPTS% -Dant.home=3D"%TOMCAT_HOME%" =
-Dtomcat.home=3D"%TOMCAT_HOME%" org.apache.tools.ant.Main %2 %3 %4 %5 %6 =
%7 %8 %9
goto cleanup

:runJspc
rem Run ant
echo Using classpath: %CLASSPATH%
java %JSPC_OPTS% -Dtomcat.home=3D"%TOMCAT_HOME%" org.apache.jasper.JspC =
%2 %3 %4 %5 %6 %7 %8 %9
goto cleanup

:setupEnv
set cp=3D%CLASSPATH%

:cleanup
rem clean up

set CLASSPATH=3D%cp%
set port=3D
set host=3D
set test=3D
set jsdkJars=3D
set jspJars=3D
set beanJars=3D
set miscJars=3D
set appJars=3D
set appClassPath=3D
set cp=3D

rem pause
:eof


------=_NextPart_000_000A_01C0E783.669BEA40
Content-Type: text/html;
    charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Reply via email to