File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Compiling servlets in DOS (over Tomcat) 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 » Products » Tomcat
Bookmark "Compiling servlets in DOS (over Tomcat)" Watch "Compiling servlets in DOS (over Tomcat)" New topic
Author

Compiling servlets in DOS (over Tomcat)

Jay Dilla
Ranch Hand

Joined: Aug 12, 2004
Posts: 199
I'm trying do

javac -classpath /Tomcat/Tomcat 5.0/common/lib
servlet-api.jar:classes:. -d classes src/com/example/web/BeerSelect.java

and it's not compiling,why are there so many problems using DOS?
Rich Raposa
Ranch Hand

Joined: Dec 06, 2001
Posts: 46
If that is the exact command you are typing, then you are getting an error because of the spaces in the folder names. Put the folder name in double quotes and that should help a lot.


Rich Raposa<br /><a href="http://www.javalicense.com" target="_blank" rel="nofollow">http://www.javalicense.com</a><br />Buy Java courseware -> get a free XBox!
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

The slash is missing after "lib/"

and it's not compiling,why are there so many problems using DOS?


are you getting any error.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiling servlets in DOS (over Tomcat)
 
Similar Threads
compile sequence
Problem running a Tomcat 4.1 project from Eclipse
error while working with tomcat
tomcat not finding classes
why my tomcat disappears