• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Compiling struts classes

 
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have a separate forum for Struts. Moving there.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
in fact the classes will be compiled when you developed in IDE.such as eclipse
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need more than just the Struts core lib--the S2 documentation has a list of dependencies.
 
reply
    Bookmark Topic Watch Topic
  • New Topic