How to add a library (jar package) to eclipse

Source: Internet
Author: User

When you toss eclipse, you often encounter this situation:

A library is missing, and after it is found, it needs to be added to the current project so that import XXX in the code can be imported properly.

Example:

"Resolved" Java code error for eclipse: The import Org.apache cannot be resolved

"How to import/Add (external) library/jar packages in Eclipse"

Basic ideas:

Since this is a library that is imported externally, the idea is:

By Add External achieves ... Imported in the same way.

Specific operation, there are many ways:

(1) The quickest is:

Right-click Project->build Path, Add External achieves ...

Example:

Then select, single or multiple, corresponding libraries (jar packages):

Click OK again.

(2) A slightly troublesome one is:

Right-click the project->properties->java Build Path, Libraries, Add External JARs

Then again, select the corresponding, single, or multiple jar packages and then OK to join in:

Summary

In Eclipse, add an external jar package, all of:

ADD External achieves ...

Can.

How to add a library (jar package) to eclipse

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.