1. Goto dos prompt and start the servletrunner,etc

2. Once you start the servletrunner, you have to open you browser and type
in example: http://localhost:8080/servlet/nameofyourservlet

3. But make sure you place your class files in (directory of where u loaded
"jsdk2.0") /jsdk2.0/examples/ ,so It can exe.


----- Original Message -----
From: Yaochun Zhang <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 24, 1999 11:08 PM
Subject: how to start


> I just start learning Servlet. I have downloaded JDK-1.2 and JSDK-2.1 into
> my PC(running on Win95). I copied several examples from the book Java
> Servlet Programming(Jason Hunter) I just bought. But I don't know how to
> see the results. I tried the "servletrunner" on dos prompt, nothing
> happens. Could someone tell me how to do it or which site has info about
> it? Many thanks.
>
> A newbie.
>
> On Mon, 24 May 1999, Hsu, Jennifer wrote:
>
> > I had a simple servlet program compile under jdk1.2 rc1 and jsdk
2.0.Then I
> > run from HTML. It run ok under DOS servletrunner with localhost.
> >
> > Now I download the jdk1.2.1 and recompile. Th servlet program compiles
fine.
> > But when I run the program from HTML with jsdk2.0 and localhost  I got
> > ClassFormatError.
> >
> > Same error if I use jdk1.1.8 with jsdk2.0. Anyone has same error? How
you
> > solve it problem. Please let me know.
> >
> >
> > Thank in advance
> >
> >
> > java.lang.ClassFormatError
> >         at sun.servlet.ServletLoader.loadClass(ServletLoader.java:230)
> >         at sun.servlet.ServletLoader.loadServlet(ServletLoader.java:91)
> >         at sun.servlet.http.HttpServer.getServlet(HttpServer.java:326)
> >         at
> > sun.servlet.http.HttpServerHandler.sendResponse(HttpServerHandler.jav
> > a:152)
> >         at sun.servlet.http.HttpServerHandler.handleConnection(Compiled
> > Code)
> >         at sun.servlet.http.HttpServerHandler.run(Compiled Code)
> >         at java.lang.Thread.run(Thread.java:466)
> >
> >
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to