如何在 Eclipse 中正确添加外部库? [英] How to add external library properly in Eclipse?

查看:46
本文介绍了如何在 Eclipse 中正确添加外部库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以今天我下载了

我的问题是,是否有一种方便或标准的方式来添加外部库?还是我真的在做正确的事情?

解决方案

推荐:

  1. 创建一个lib"文件夹并将您的所有 jar 文件保存在该文件夹中.
  2. 随后,使用 Project => 将 lib 文件夹中的所有 jar 文件添加到您的构建路径中.属性 =>Java 构建路径 =>图书馆 =>添加 JAR ...

顺便说一句,没有截图.您能否提供屏幕截图的链接,以便我能够更好地帮助我们...

So today I downloaded Apache Commons Lang library (binary, zip format). I extracted it to C:eclipsecommons-lang-2.5 folder. There are a commons-lang-2.5.jar, a commons-lang-2.5-javadoc.jar, and a commons-lang-2.5-sources.jar inside, and a folder for HTML Javadoc. I started Eclipse, added commons-lang-2.5.jar, and set its source and Javadoc respectively as the screenshot below. (http://img43.imageshack.us/img43/9378/eclipsev.png)

My question is, is there a convenient or standard way to add external libraries? Or am I actually doing the right thing?

解决方案

Recommendation:

  1. Create a "lib" folder and keep all your jars in the folder.
  2. Subsequently, add all the jar files in the lib folder into your build path by using Project => Properties => Java Build Path => Libraries => Add JAR ...

btw, there' no screenshot. Can you give the link for the screen shot so that I may be able to help our better...

这篇关于如何在 Eclipse 中正确添加外部库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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