如何在Eclipse中导入jar [英] How to import a jar in Eclipse

查看:258
本文介绍了如何在Eclipse中导入jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Eclipse中导入jar?

解决方案

您可以在Eclipse中添加一个jar,方法是右键单击项目→构建路径→配置构建路径。在库选项卡下,单击添加Jars或添加外部JAR,并给出JAR。快速演示此处





上面的解决方案显然是一个快速解决方案。但是,如果您正在处理需要将文件提交到源代码控制存储库的项目,我建议将Jar文件添加到源代码控制存储库中的专用库文件夹中,并引用其中几个或全部如上所述。 p>

How do I import a jar in Eclipse?

解决方案

You can add a jar in Eclipse by right-clicking on the Project → Build Path → Configure Build Path. Under Libraries tab, click Add Jars or Add External JARs and give the Jar. A quick demo here.

The above solution is obviously a "Quick" one. However, if you are working on a project where you need to commit files to the source control repository, I would recommend adding Jar files to a dedicated library folder within your source control repository and referencing few or all of them as mentioned above.

这篇关于如何在Eclipse中导入jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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