File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet runner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet runner" Watch "Servlet runner" New topic

Servlet runner

Shah Chunky
Ranch Hand

Joined: Dec 27, 2000
Posts: 116

Hi all...
I have compiled a servlet file called, but can someone tell me where to put the .class file

i.e. i tried to put it in d:/jsdk2.0/examples directory & then i tried to run it in Internet Explorer 5.5
by giving :- http://loclahost:8080/servlet/HelloServlet
but it is displaying error "404 file not found"

I started the servletrunner from d:/jsdk2.0/examples & the command prompt says:-
"Servlet not found: HelloServlet"

Shah Chunky - Sun Certified Java2 Programmer.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I strongly suggest that you drop the JSDK and work only with the Tomcat package. In October 99 Sun gave the Apache organization the code with the intent that Tomcat is to be the "reference implementation" of the servlet and JSP APIs. JSDK is a generation behind and is not supported by Sun.
Be sure you remove all traces of the JSDK before installing Tomcat.

author of:
r venkat

Joined: Jan 09, 2001
Posts: 8
what is tomcat? is it a webserver?
i think we should put it in the servlets folder of the java web server, and start servletrunner and then set the classpath,
then call the servlet i.e., http://....
I agree. Here's the link:
subject: Servlet runner
It's not a secret anymore!