Search code examples
javaantapache-commons

Will Apache Ant make IOUtil class usable?


Will Apache Commons IO classes be usable if I add Apache Ant to the project build path?

I need to use IOUtil class. If no please provide the download link to the correct JAR file.


Solution

  • Easiest approach

    1. Download Apache Commons IO from the Apache foundations website
    2. create a folder 'lib' in your eclipse project and copy the commons library (jar) in it
    3. right-click the project and do a refresh (if the library is not yet displayed)
    4. right-click the library and do "Build Path" - "Add to build path"

    (I don't have the eclipse up and running, hope the menu and action names are correct)