• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet package not available  RSS feed

 
soven rout
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even if I had set the class path for servlet API still while compiling it is showing the error that showing that

AdditionServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
AdditionServlet.java:3: cannot find symbol
symbol: class GenericServlet
public class AdditionServlet extends GenericServlet
^
AdditionServlet.java:5: cannot find symbol
symbol : class ServletRequest
location: class AdditionServlet
public void service(ServletRequest request,ServletResponse response)throws IOException{
^
AdditionServlet.java:5: cannot find symbol
symbol : class ServletResponse
location: class AdditionServlet
public void service(ServletRequest request,ServletResponse response)throws IOException{
^
4 errors
Hey guys I'm correct as far I know but can't find out the cause.Please give the reason for the Error.
Thanks in adv.
 
Piyush Mangal
Ranch Hand
Posts: 196
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you setting the classpath?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!