wood burning stoves*
The moose likes Servlets and the fly likes Not able to compile servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Not able to compile servlet" Watch "Not able to compile servlet" New topic
Author

Not able to compile servlet

Vidya Gaali
Greenhorn

Joined: Feb 03, 2006
Posts: 1
Hello
I would like some one to help me.
I have WindowsXp professional on my Laptop. I downloaded jdk and I am able to compile and run the core java files.
I downloaded j2sdk1.4.2_10 from the website www.java.sun.com. and then set the path in the environment variables. But in the command promt I was not able to compile the servlet.

Could you please guide me about what more has to be done so that The servlet can compile.

Thanking you
Vidya
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Servlet belongs to J2EE component and you need to download J2EE SDK.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

There is an entry on compiling servlets in the Servlets FAQ.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi,


If your classes are generating the compilation errors about..
HttpServletRequest
HttpServletResponse

then put the servlet-api.jar or servlet.jar in the classpath..

Regards
 
 
subject: Not able to compile servlet
 
Similar Threads
Plz clear my doubt
Any reference book for Servlet and JSP
Cost,Platform and trial version.
unable to find servlet.jar
How to call servlet which is inside the jar??