• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiling struts classes

 
shaf maff
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a separate forum for Struts. Moving there.
 
yang nate
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in fact the classes will be compiled when you developed in IDE.such as eclipse
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need more than just the Struts core lib--the S2 documentation has a list of dependencies.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic