aspose file tools*
The moose likes Servlets and the fly likes How to compile a servlet using javac.exe? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to compile a servlet using javac.exe?" Watch "How to compile a servlet using javac.exe?" New topic
Author

How to compile a servlet using javac.exe?

Ben Gao
Greenhorn

Joined: Feb 19, 2002
Posts: 8
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

Joined: Feb 20, 2001
Posts: 3695

It's in a jar file called servlet.jar.

If you download tomcat, you'll find it under <CATALINA_HOME>/common/lib
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to compile a servlet using javac.exe?