wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet runner" Watch "Servlet runner" New topic
Author

Servlet runner

Shah Chunky
Ranch Hand

Joined: Dec 27, 2000
Posts: 116

Hi all...
I have compiled a servlet file called HelloServlet.java, 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
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
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.
Bill

------------------
author of:
r venkat
Greenhorn

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://....
by
venkat
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Servlet runner
 
Similar Threads
Servlets not loading
Servlet runner/304 error
How to reload a servlet class .. plz help
url-mapping
where to put servlets? (searched 1st)