• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet package not available

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 196
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are you setting the classpath?
reply
    Bookmark Topic Watch Topic
  • New Topic