Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Servlets JSDK2.1?

Status
Not open for further replies.

BZJavaInst

Programmer
Jan 17, 2001
67
US
I was able to get servlets working with the JSDK2.1.

It appears that the startserver.bat file the comes with the JSDK2.1 only works on Windows NT. That is why the Servlets do not work on my Windows 98 machine.

Does anyone know if there is one for Windows 98?

thanks,
Brian

Here is startserver.bat for NT:

@echo on
rem $Id: startup.bat,v 1.8 1999/04/09 19:50:34 duncan Exp $
rem Startup batch file for servlet runner.

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

if "%CLASSPATH%" == "" goto noclasspath

rem else
set _CLASSPATH=%CLASSPATH%
set CLASSPATH=server.jar;servlet.jar;classes;%CLASSPATH%
goto next

:noclasspath
set _CLASSPATH=
set CLASSPATH=server.jar;servlet.jar;classes
goto next

:next
rem echo Using classpath: %CLASSPATH%
start java com.sun.web.shell.Startup %1 %2 %3 %4 %5 %6 %7 %8 %9

rem clean up classpath after
set CLASSPATH=%_CLASSPATH%
set _CLASSPATH=

 
Dear Brian,
I have the same problem.Please let me know also after you get the solution.
 
Here it is.

Here is a modified bat file for starting the JSDK2.1 web server in Windows 98. It works, but does not start up another window as on NT. Unfortunately, when you exit you have to close the Dos command window which is not to graceful with the server still running. When the command window is closed, the server will stop.

Startserver98.bat

@echo off
rem $Id: startup.bat,v 1.8 1999/04/09 19:50:34 duncan Exp $
rem Startup batch file for servlet runner.

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

rem echo Using classpath: %CLASSPATH%
java com.sun.web.shell.Startup %1 %2 %3 %4 %5 %6 %7 %8 %9

Good luck,
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top