This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Struts and the fly likes compiling ActionForm,ActionClass from command prompt, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "compiling ActionForm,ActionClass from command prompt, " Watch "compiling ActionForm,ActionClass from command prompt, " New topic

compiling ActionForm,ActionClass from command prompt,

Satyajeet Kadam
Ranch Hand

Joined: Oct 19, 2006
Posts: 215
how to compile struts application( example ActionForms,ActionClasses) from command prompt without using editor

Assume is Action class that i want to compile from command prompt.I am trying to make bat file. Please help

java -classpath D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;D:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\struts.jar;C:\j2sdk1.4.1_01\bin\
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
If you're going to compile outside of an IDE, I'd recommend you write an ANT script rather than a .bat or .sh file.

Consultant, Sima Solutions
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Most sample projects that you download will come with an Ant script (generally named build.xml). Though I have seen more lately that use Maven...I have to admit that I do not understand Maven that much.

- Brent
I agree. Here's the link:
subject: compiling ActionForm,ActionClass from command prompt,