How Eclipse Imports third-party jar packages

Source: Internet
Author: User

  This article transferred from: http://blog.csdn.net/mazhaojuan/article/details/21403717

Third-party jar packages are often used when developing programs with Eclipse. The introduction of a jar package is not a small problem, and is a waste of time due to the unclear location of the jar package. The following diagram illustrates how 3 types of Eclipse introduce jar packages.
1. The most common common operation mode: basic Steps right-click "Project" → Select Properties, select Java Build Path in the list on the left of the popup dialog box, as shown in: Select Add External JARs, you can select multiple jars individually, but limit In the same folder), add a third-party reference jar package.

The operation in this way is universal, but each time a project is created, the jar package is reintroduced and the jar package is not reusable.

2. How to operate the Express version: User jar Package

Right-click on "Project" → Select Properties, select Java Build Path in the list on the left of the popup dialog box, pop Up the dialog box shown here, select "Add Library", pop up as shown in the dialog box, select "User Library", Then select →next

In the dialog box that appears, you can select a user-defined library that has already been created, or you can select "New" in the Libraries dialog box to create a new user-defined library.

In the user-defined library that you want to create, enter the name of the new custom library, such as

Then add the required jar packages for the new library

After you have added the user-defined library as described above, you can later reuse these defined users library libraries to save time for development.

3. How to operate the Express version: folder import type

In the project, create a new folder (Eg:ibatis_jar), as shown in this example, the Ibatis_jar folder is created and the third-party jar packages that are required for project development are copied to the folder.

Select the jar package that you want to add to the project, and right-select "Build Pathàadd to build Path" so that the jar package is successfully imported into the project.

The third way to import jar packages is simpler and more reusable than the second, and when we look for the required jar packages on different machines, we can copy them directly.

There is a temporary understanding of the Eclipse import jar package, and as the experience accumulates, the difference between the various ways in which Eclipse introduces jar packages will be understood more deeply!

How Eclipse Imports third-party jar packages

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.