File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android 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
It is sorta covered in the JavaRanch Style Guide.
subject: compiling ActionForm,ActionClass from command prompt,
It's not a secret anymore!