Create your own library using the user library in eclipse

Source: Internet
Author: User

You can create your own package library by using the user library, where you can add frequently used jar packages or your own jar packages so that you only need to import the library when you use it.

No need to bother importing all the required jar packages every time

The steps are as follows:

One: The steps to add the user library to Eclispe:
1. Click Eclipse's Window menu and select "Preference"
2. Select Java->user Libraries in the Preferences window and click on the New button on the right side of the window. button to enter the name of the user library in the popup Subwindow, the new library name will appear in the User Libraries window, such as hibernate.



3. Add the jar package to the user library. Select Hibernate, and then click Add JARS ... button, select the jar you want to add, click the "Open" button, and the jar file information you just added will appear in Hibernate library.



Two: Import the library in the project

You can then import the user library that you created in your project.

As follows:

1, right-click the project name-->build Path--->add Libraries. Then select the user library, and then you will see the library libraries you created, select it.




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.