File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes cannot find symbol error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "cannot find symbol error" Watch "cannot find symbol error" New topic

cannot find symbol error

Red Rose

Joined: Dec 28, 2011
Posts: 4

Dear Team

While compiling above program it shows error like cannot find symbol for HttpServlet, HttpServletRequest, HttpServletResponse. kindly help me to compile
Louis Bros
Ranch Hand

Joined: Jun 03, 2011
Posts: 54

Have you included the 'servlet-api.jar' on your class path?

Red Rose

Joined: Dec 28, 2011
Posts: 4
yes i had
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

You say that the servlet API has been added to the class path, but if it had been, you would not be getting these errors.

Moved to the Beginning Java section where compiling from the command line is discussed.

[Asking smart questions] [About Bear] [Books by Bear]
Ishitha Dyanil

Joined: Jan 18, 2012
Posts: 12

I'am also getting same problem,even though compiling in the same folder.
Can any one tell me the reason.
It is sorta covered in the JavaRanch Style Guide.
subject: cannot find symbol error
It's not a secret anymore!