aspose file tools
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Not able to compile servlet" Watch "Not able to compile servlet" New topic

Not able to compile servlet

Vidya Gaali

Joined: Feb 03, 2006
Posts: 1
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 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
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

Joined: Jan 10, 2002
Posts: 62312

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: 980

If your classes are generating the compilation errors about..

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

Have you tried LearnNowOnline?
subject: Not able to compile servlet