Results 1 to 5 of 5
  1. #1
    kvnchary is offline Member
    Join Date
    Sep 2013
    Posts
    3
    Rep Power
    0

    Default java servlet cannot find symbol error

    I am new to Servlets.
    So please help with this error
    ....


    public class registration extends GenericServlet
    ^
    symbol: class GenericServlet



    plz reply ASAP..
    Last edited by kvnchary; 09-09-2013 at 08:27 AM.

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,104
    Rep Power
    6

    Default Re: java servlet cannot find symbol error

    plz reply ASAP
    Why? Because you think you deserve preferential treatment? Because you assume people are lazy and otherwise just lazily hang around staring at the screen not answering anything?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    kvnchary is offline Member
    Join Date
    Sep 2013
    Posts
    3
    Rep Power
    0

    Default Re: java servlet cannot find symbol error

    hey don't misunderstand it ..
    I am not thinking in that way..,if u think in that way I am very very very sorry

    I am trying one programme since 2 days I am not getting the output that is why I mentioned ASAP..

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,104
    Rep Power
    6

    Default Re: java servlet cannot find symbol error

    Well here are some tips:

    a) to get help, post the entire error, not just a tiny part of it. I have to guess here it is a "symbol not found" error
    b) don't state urgency or mention things as "answer ASAP" because that will only make people less likely to help you

    And the most important:

    c) before posting in the forum, google the error you get. You are not the first one to run into this

    Your main problem is probably that you don't understand well how to manage the application classpath. You need to have a jar with the servlet classes on your compile time classpath before you can compile servlets. If for example you use Tomcat, you can add its servlet-api.jar to your project libraries and your code will compile. You do NOT deploy this jar with your web application, since Tomcat already provides it for you.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    kvnchary is offline Member
    Join Date
    Sep 2013
    Posts
    3
    Rep Power
    0

Similar Threads

  1. Java Compile Error : cannot find symbol
    By JoelC in forum New To Java
    Replies: 9
    Last Post: 11-06-2012, 07:43 PM
  2. Message.java:6: error: cannot find symbol
    By pravingajbhiye in forum New To Java
    Replies: 1
    Last Post: 09-10-2012, 09:26 AM
  3. Replies: 1
    Last Post: 11-18-2011, 11:55 PM
  4. java:92: cannot find symbol error
    By noviceNewbie in forum AWT / Swing
    Replies: 3
    Last Post: 12-18-2010, 02:46 AM
  5. [SOLVED] Java Error: Cannot find Symbol...
    By bobleny in forum New To Java
    Replies: 8
    Last Post: 04-15-2008, 06:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •