tags:

views:

67

answers:

3

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.

+7  A: 

Grumpy Old Mlk Time (bye bye rep points):
You have to actually learn Java and the tools not just string together odd snippets of code.

In this case I recommend you head back to your original thread on this subject and read the tutorial I posted and ignore Commons IO for now. You are going to a lot of trouble to avoid a very small amount of boiler plate code.

One you have done that it might be worth reading a little about the classpath and how one configures that (called the build path) in Eclipse.

mlk
+1 for the remark in parentheses.
+1 for patience and being honest :) (I bet, the next question is something like: 'please define use of classpath' or so)
Andreas_D
+1 If only there was a "grumpy old fart" badge. I'd have 2 dozen of them by now.
skaffman
+1 from me as well, I think you're right; @Andreas_D yup, http://stackoverflow.com/questions/1769889/how-to-include-apache-commons-io-in-eclipse-java
laura
+1, just out of spite and to prove you wrong!
Carl Smotricz
what did you think i will accept you answer ;)
rover12
@skaffman - should we ask for this on meta.stackoverlow ? Along with the "in my day..." badge...
Brian Agnew
@Brian Agnew It would get my vote.
mlk
+1  A: 

Yes, they'll be just as useable as if you hadn't added Ant.

Carl Smotricz
actually i forgot to add that they are not usable now.. i dont know how to add apache commons io to make it usable i though adding ants would make it usable .
rover12
Nope, Ant is a build tool, not a fix for an incomplete classpath.
Carl Smotricz
+1  A: 

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)

Andreas_D
and please - use google/bing/etc first, with 'apache commons io' you'd found it quite easy on the web
Andreas_D