This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 201
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
 
 
subject: Compiling servlets in DOS (over Tomcat)
 
Similar Threads
why my tomcat disappears
Problem running a Tomcat 4.1 project from Eclipse
compile sequence
error while working with tomcat
tomcat not finding classes