• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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?
 
I wasn't selected to go to mars. This tiny ad got in ahead of me:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic