aspose file tools*
The moose likes Struts and the fly likes Compiling struts classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Compiling struts classes" Watch "Compiling struts classes" New topic
Author

Compiling struts classes

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys
I am new to frameworks. I am working on the struts framework and want to compile some classes. The problem is I dont know how to compile them. I only know of the "javac File.java" method but that doesnt work for the strut classes. I was told to use maven or ant but I have little idea on how they work (I have read through the tutorials and they were little help) let alone how to use it. I have just downloaded the maven package. Can someone give me some quick steps on what I need to do in order to compile these strut classes please?

Thanks
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3829

You have to set the classpath to the jar file (struts-core-versionNumber.jar) when compiling.

Asuming you have the jar files in D:/struts/

javac -classpath D:/struts/struts-core-xxx.jar yoursourcefile.java


I was told to use maven or ant but I have little idea on how they work (I have read through the tutorials and they were little help) let alone how to use it


Those are tools for making the tasks of development,deployment etc... easier for us. You may try using Ant which has a very good documentation as well.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

We have a separate forum for Struts. Moving there.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
yang nate
Greenhorn

Joined: Dec 17, 2008
Posts: 1
in fact the classes will be compiled when you developed in IDE.such as eclipse
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You need more than just the Struts core lib--the S2 documentation has a list of dependencies.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiling struts classes