Create an eclipse user Library

Source: Internet
Author: User

1. Add User library to eclispe:
1. Click the window menu of eclipse and select "preference"
2. In the preferences window, select Java-> User libraries, and then click New... in the dialog box that appears, enter the name of the user library.
Library name.
3. Add a jar package to the user library. Select my_lib and click Add jars... click, select the jar you want to add, and click "open". The JAR file information you just added will appear in the my_lib library.
4. Click "OK" in the window to add the user library and its jar.
You can select export to create a new user library, and you can see the content clearly.

If you are familiar with it, you can directly create a XXX. userlibraries file and put it under the project. Format :\

<? XML version = " 1.0 " Encoding = " UTF-8 " Standalone = " No " ?>
< Eclipse - Userlibraries version = " 2 " >
< Library name = " Testlib " Systemlibrary = " False " >
< Archive path = " /$ {Projectname}/lib/selenium-java-client-driver.jar " />
< Archive path = " /$ {Projectname}/selenium-java-client-driver-tests.jar " />
< Archive path = " /$ {Projectname}/testng-5.14.1.jar " />
</ Library >
</ Eclipse - Userlibraries >

 

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.