如何在 Eclipse 中导入 jar [英] How to import a jar in Eclipse
问题描述
如何在 Eclipse 中导入 jar?
您可以通过右键单击项目"→构建路径"→配置构建路径",在 Eclipse 中添加 jar.在 Libraries 选项卡下,单击 Add Jars 或 Add External JARs 并提供 Jar.快速演示 此处.
上述解决方案显然是一个快速"的解决方案.但是,如果您正在处理需要将文件提交到源代码控制存储库的项目,我建议将 Jar 文件添加到源代码控制存储库中的专用库文件夹中,并如上所述引用其中的少数或全部.>
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屋!