This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
ServletContext
[newbie] Null pointer exception ??
'javac' is not recognized | Special case
servlet compilation error.
JSP/Servlet library for standalone application?