File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes  how ro compile struts action classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark " how ro compile struts action classes" Watch " how ro compile struts action classes" New topic

how ro compile struts action classes

gajanan patil

Joined: Dec 26, 2008
Posts: 1
Hi guys

i am new to struts .

i dont know how to compile struts action classes using my eclipse , can anybody please help me .

Thanks in advance
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
If you are trying to compile from command prompt of window OS, then
set path="jdk/bin directory";%path%
set classpath="struts jar file name with path";%classpath%
set classpath="servlet jar file name with path";%classpath%
javac -d . *.java

Alejandro Galvan
Ranch Hand

Joined: Jan 02, 2008
Posts: 48

Are you using your Eclipse or MyEclipse? The Action classes you want to compile are those that you wrote? Normally IDE's can automatically compile your code, so, if you want to compile your code, most probably it is already done by the IDE (look into your workspace on your file system), and when you deploy your app into a server the IDE will just move the compiled code to the AS.

Maybe this kind of question is for the IDE's forum. Please let us know if this information is enough or you have more doubts about struts.

SCJP 5.0<br />Preparing SCWCD
jQuery in Action, 2nd edition
subject: how ro compile struts action classes
Similar Threads
Workflow and actions
connetion action class
Application level variables in Struts 1.1
connetion action class
How to SET and GET session objects in Struts Action classes ???