Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to compile first servlet

 
Shaan patil
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I am not able to compile my first servlet. What is the path setting to compile the servlets ?

ProcServlet.java:1: package javax.servlet.http does not exist

Regards
[ January 23, 2008: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The important thing to remember is that a servlet class is no different than any other class with dependencies.

This link explains the servlet specific stuff.
http://faq.javaranch.com/java/CompilingServlets

I'm going to move this to our Java In General (Beginner) forum where classpath, and javac issues are discussed.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have downloaded J2EE? The package you mention isn't in the standard edition, so you will have to install the enterprise edition (see the FAQ quoted earlier).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic