How can I configure my Eclipse installation to use classes from Apache Commons IO?
I want to use this code:
IOUtil.write(encoded, new FileOutputStream(new File("target-file.txt")))
But it gives the error:
IOUtil cannot be resolved
What you need to do is this: How to import a jar in Eclipse
You also can use build tools eclipse plugins like m2eclipse or IAM (formerly Q4e).
IAM can be be installed following those instructions, and ha s a great dependency viewer
Differences between m2eclipse and IAM are discussed here, there and here.
Q4E is event-oriented, I believe that m2e uses the console and stdin/out.
A bigger one is that m2eclipse forks and uses an external maven (for running maven goals) while
iam/q4e
only uses the embedder.
Our position here is that it is the way to go, allowing deep integration and better performance.
It certainly has allowed us to quickly do things like the dependency analysis view and some other "magic" in the maven incremental builder.
Download Apache .jar files and add them to library through your IDE (Eclipse).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With