• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet runner

 
Shah Chunky
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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"
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic