如何在Eclipse中包含Apache Commons IO? (JAVA) [英] How to include Apache Commons IO in Eclipse? (Java)

查看:250
本文介绍了如何在Eclipse中包含Apache Commons IO? (JAVA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将Eclipse安装配置为使用Apache , there 这里


Q4E是面向事件的,我相信m2e使用控制台和stdin / out。



较大的一个是 m2eclipse fork并使用外部maven(用于运行maven目标),而 iam / q4e 仅使用嵌入

我们的立场就是这样允许深度集成和更好的性能。

它肯定允许我们快速地执行诸如依赖关系分析视图和maven增量构建器中的其他一些魔术。



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

解决方案

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.

这篇关于如何在Eclipse中包含Apache Commons IO? (JAVA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆