• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to compile servlet

 
Vidya Gaali
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet belongs to J2EE component and you need to download J2EE SDK.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64196
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an entry on compiling servlets in the Servlets FAQ.
 
A Kumar
Ranch Hand
Posts: 980
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic