File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "compiling ActionForm,ActionClass from command prompt, " Watch "compiling ActionForm,ActionClass from command prompt, " New topic
Author

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 TestAction.java 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\TestAction.java
Dom Lassy
Ranch Hand

Joined: May 05, 2006
Posts: 181
javac
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.


Merrill
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,