wood burning stoves*
The moose likes Tomcat and the fly likes how to copy .class files efficiently to 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 "how to copy .class files efficiently to Tomcat?" Watch "how to copy .class files efficiently to Tomcat?" New topic
Author

how to copy .class files efficiently to Tomcat?

Brusk Baran
Ranch Hand

Joined: Nov 15, 2001
Posts: 132
I mean, is there a way to create .class files directly from within Tomcat/webapps/MyContext-Application/WEB-INF/classes[or lib]/(here I have the .java files, and directiories, and packages etc.)
I want to compile them here. if possible, how??
ps: I have read sth. about Ant, and seems it can be used but, does Tomcat implicitly have the capability for this?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

> I want to compile them here. if possible, how??
With javac? But seriously... Tomcat doesn't care how you compile your files, either with commandline javac, or by using ANT. Tomcat doesn't "implicity have the capability", but then again, why would it? It's a servlet runner, not a build tool.

Check this out http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
Look in the tooldocs section of the docs directory of your SDK installation.
Find the options for javac - you will see that the -d directory sets the destination for compiled classes.
Everybody should get familiar with tooldocs.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to copy .class files efficiently to Tomcat?
 
Similar Threads
when is the Websphere restart is required ?
when is the Websphere restart is required ?
when is the Websphere restart is required ?
when is the Websphere restart is required ?
Servlets with Tomcat 4