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

How to compile a servlet using javac.exe?  RSS feed

 
Ben Gao
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use " javac.exe -classpath C:\tomcat\common\lib XXXServlet.java" under command line.A error of "package javax.servlet does not exist" occurs.Would you tell me where the package javax.servlet locate. I can't find it.
Thank you!
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's in a jar file called servlet.jar.

If you download tomcat, you'll find it under <CATALINA_HOME>/common/lib
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!