How the Java foundation imports the external jar package

Source: Internet
Author: User

Turn: From http://www.zhihu.com/question/20311561

There are two common ways to do this.

1. Import in the form of an external package (External Archives).

In the package Explorer, which is located by default on the left side of the Eclipse window, right-click the project name and tap Add External Archives under the Build Path entry. Then select the Acm.jar in the pop-up file Selection window.

This method is useful for importing a single jar package.

2. Import in the form of User Library.

User Library is a library of users that is used to organize multiple jar packages.

In the package Explorer, which is located by default on the left side of the Eclipse window, right-click the project name and tap Add Libraries under the Build Path entry. Select the User Library in the pop-up window and click Next. In the newly emerged window (window one), click on the User Libraries on the right ... button to enter the User Library Preferences window. Next, click the New button, enter the user class library name, for example "ACM", click OK. Then click to select the newly created User class library, click the Add JARs button on the right, select one or more jar files, click OK. Next, go back to window one and select the newly created User class library and click OK.

This method is suitable for importing multiple jar packages.

The answers above are written based on Eclipse 3.7.0.
---------------------------------------------------------------
Despite all this, it's a matter of saying that Google will get the answer more quickly.

How the Java foundation imports the external jar package

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.