This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes Servlet problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet problem" Watch "Servlet problem" New topic

Servlet problem

indrajit bose

Joined: Nov 29, 2001
Posts: 13
i have downloaded j2sdk1.4 from the i am trying to run a simple servlet program using servlet runner.but i cudnt trace the servlet runner file.can any1 plz help me how to run a servlet prog. through j2sdk1.4
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
If I were you, I would not use that servlet runner. I would download tomcat from

So much trouble in the world -- Bob Marley
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

U cannot run a servlet using j2sdk1.4.
Solution - Use Tomcat.

Ken Robinson
Ranch Hand

Joined: Jul 25, 2002
Posts: 52
Along with Tomcat (or any other web server), you will need the servlet classes to compile your code.
I recommend getting the J2EE kit available from Sun. You could also get the latest version of the Java Servlet Development Kit (JSDK), which is a subset of the J2EE.
Servlets are just classes. J2EE compliant Web Servers (Tomcat is one of many) actually instanciate and run your servlets. Tomcat is free and very easy to use.
I agree. Here's the link:
subject: Servlet problem