CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@harshitha • 26 Nov, 2008
hi ,
anybody who reads this please tell me wher can i find jsdk2.0 servlet runner for download bcos my exams r nearing n i ve to practice my java programs.
@Kaustubh Katdare • 27 Nov, 2008 Note: Please do NOT use SMS language while posting on CE Forums.

Taken from: Learn Java - Servlet Runner 101 - How to use the Java servletrunner

The servletrunner is located in the bin directory of the JSDK. As an example, I've installed the JSDK in a directory named C:\JSDK2.0 on my Windows PC, so the servletrunner is located in C:\JSDK2.0\BIN.

Starting Servelet Runner:

You can start the servletrunner in a variety of ways, but here's how I do it:

  1. Create the servlet you want to deploy to your web server.
  2. Copy the servlet to the C:\JAVA\JSDK2.0 directory.
  3. Open a DOS window (Unix users: open a terminal/console window or telnet session). Use the cd command to move to the C:\JAVA\JSDK2.0 directory.
  4. On a Windows PC, I start the servletrunner by running a small batch file I created for this purpose (see Listing 1).
  5. Open Netscape (or another browser).
  6. In Netscape, I enter the URL for the servlet to be tested. As an example, if the servlet is named myservlet, the URL will be "https://localhost:8080/servlet/myservlet". (Note that the servletrunner listens on port 8080 by default.)
  7. At this time, the output of your servlet should appear in your browser.
Note that if you have a more complicated Java servlet that requires the passing of parameters to the servlet, you'll have a few more steps to follow before starting the servletrunner.

REM 
REM  SRUNNER.BAT 
REM  ----------- 
REM 
REM  PURPOSE:  Run the JSDK 'servletrunner' 
REM 
REM  JDK installed in C:\JAVA\JDK1.1.5 
REM  JSDK installed in C:\JAVA\JSDK2.0  set PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JAVA\JDK1.1.5\BIN;C:\JAVA\JSDK2.0\BIN  
set CLASSPATH=C:\JAVA\JSDK2.0\LIB\JSDK.JAR;C:\JAVA\JDK1.1.5\LIB\CLASSES.ZIP  
bin\servletrunner -d . 
Hope this helps.
@siyawatch • 03 Sep, 2012 Here is the link for JSDK 2.0

https://www.oracle.com/technetwork/j...oads-eeplat-419426.html#7280-jsdk-1.0-oth-JPR
3.2k views

Related Posts

@Kaustubh Katdare · Jul 2, 2013

Samsung's 85" beast, the 85S9 Ultra HD TV has been launched in India with a brain-blasting price tag of Rs. 27 lakh only. The display fanatics may recall that the...
3.2k views

@Manashree Thokal · Jun 24, 2012

The idea of this project is to create a web based application that provides facilities to management crime files. Abstract: This web based application provides facilities for reporting crimes, complaints,...
8.8k views

@Sarathkumar Chandrasekaran · Oct 25, 2013

hi CEans , I am here to throw a discussion on two wheeler side stand alerter.I had seen many of the people using side stand rather than main stand because...
12.3k views

@Ankita Katdare · Oct 19, 2014

Pat Starace, a technology innovator from New York, had the most amazing motivation for building a prosthetic arm. He wanted to solve a mechanical challenge in an affordable manner such...
6.3k views

@Aadesh · May 24, 2012

I need help regarding the Final year diploma Project Topics(computer engineering). Guys please Suggest some awesome topics
3k views