This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot find symbol HttpServletRequest  RSS feed

 
Mitch Miller
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I cannot compile servlets with standard Java.
Tried copying Tomcat's common/lib/servlet-api.jar.

What files do I need to add from J2EE to compile?

Thank you,
Mitch
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See:
http://faq.javaranch.com/java/CompilingServlets

Moving to Java In General (Beginner) where javac and classpath issues are discussed.
 
Mitch Miller
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ben.
I have not used this in awhile and had forgotten.
I fixed it by setting classpath to:
$CATALINA_HOME/bin/bootstrap.jar:
$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet-api.jar:.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!