Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 Android Security Essentials Live Lessons this week in the Android 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?
 
Similar Threads
[newbie] Null pointer exception ??
servlet compilation error.
ServletContext
JSP/Servlet library for standalone application?
'javac' is not recognized | Special case