Eclipse IDE-添加jar?添加外部jar?添加图书馆? [英] Eclipse IDE- Add jar? Add External jar? Add Library?

查看:191
本文介绍了Eclipse IDE-添加jar?添加外部jar?添加图书馆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将 TwitterAPIME 集成到我的黑莓项目中。我有3个Jar文件由 TwitterAPIME 提供。我不知道如何将这3个JAR文件链接到我的项目。

I want to integrate TwitterAPIME to my Blackberry project. I have 3 Jar files provided by TwitterAPIME. I am not sure how to link these 3 Jar files to my project.

我的基本疑点是

什么是外壳吗?什么是图书馆?

What is an External Jar ? What is a Library ?

添加jar,添加外部jar或添加库有什么区别?

What's the difference between Adding jar, Adding External jar or Adding Library ?

推荐答案

什么是外部JAR?




  • 外部名称建议是未构建的Jar文件通过当前开发的代码。它是一个实用的Jar文件,外部添加了额外的功能。它可以是从外部站点提供的一个API Jar文件,就像在你的情况下,3个Jar文件将会调用External Jar Files。

  • 添加外部jar文件在Eclipse中,请按照下列步骤操作:右键单击项目 - >选择构建路径 - >在以下对话框中选择配置构建路径 - >库选项卡。

    What is an External JAR?

    • External as the name suggest is a Jar file that is not built by the currently developing code. It is a utility Jar file that is added externally for extra features. It could be an API Jar file provided from the external site, just as in your case the 3 Jar files will be going to call External Jar Files.
    • To add an External Jar file in Eclipse, follow these steps: Right Click on Project -> Select Build Path -> Select Configure Build Path -> Library Tab in the following Dialog box.

      图书馆是JDK目录或任何其他软件的内置Jar文件,例如J2ME-波兰语,如上图所示。通常这些库文件由制造商开发。

      A Library is a in-built Jar file from the JDK Directory or any other software e.g. J2ME-Polish as you can see in the Image above. Normally these Library files are developed by a manufacturer.


      • 添加Jar文件:当您在Eclipse中有多个项目,并添加另一个项目的Jar文件时,称为添加Jar文件。上图中有一个第一个Button,它只允许你从另一个Project添加Jar文件。

      • 添加外部Jar:添加站点或其他制造商提供的API Jar文件时。在你的情况下,3个Jar文件是External Jar Files。您可以通过使用第二个按钮添加外部JAR来添加。

      • 添加库:单击第4个按钮将打开如下对话框。

      • Adding Jar File: When you have more than one project in Eclipse and you add another project's Jar file, that is called adding Jar File. There is a first Button in the Photo above, it only allows you to add Jar file from the other Project.
      • Adding External Jar: When you add any API Jar file provided by the site or another manufacturer. In your case the 3 Jar files are External Jar Files. You can add then by using second Button "Add External JARs".
      • Adding A Library: Clicking on the 4th Button will open a dialog box as below.

      您可以在系统中添加不同的库。您还可以通过选择用户库添加您自己的库。

      You can add different libraries installed on your system. You can also add your own Library, by selecting "User Library".

      这篇关于Eclipse IDE-添加jar?添加外部jar?添加图书馆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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