This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot find symbol error

 
Red Rose
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



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
Posts: 54
Java Tomcat Server Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you included the 'servlet-api.jar' on your class path?
 
Red Rose
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i had
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ishitha Dyanil
Greenhorn
Posts: 12
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic