Simplifying the introduction of external jar packages in Eclipse and MyEclipse

Source: Internet
Author: User

In S2sh, due to the number of packages to be imported, in order to avoid pasting the package in Webroot/web-inf/lib each time, and then build path, it is troublesome, and prone to fewer packet drops or missing packets errors, so the following method to facilitate operation, reduce the fallacy:


1. First, add the external library in the IDE;


Windows-Preferences, Java--Build Path--User Libraries

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/24/wKioL1fV_0rDv8JXAACQjITM-L0057.png-wh_500x0-wm_3 -wmp_4-s_2242041522.png "title=" image 1.png "alt=" Wkiol1fv_0rdv8jxaacqjitm-l0057.png-wh_50 "/>

2, new user-defined library folder Struts2_jar,hibernate_jar,spring_jar;

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/87/24/wKioL1fWAKuBgWa3AADIgvinc4Q067.png-wh_500x0-wm_3 -wmp_4-s_3054472469.png "title=" image 2.png "alt=" Wkiol1fwakubgwa3aadigvinc4q067.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/24/wKioL1fWAPOwAQRZAADKintKXJA509.png-wh_500x0-wm_3 -wmp_4-s_3668355165.png "title=" image 3.png "alt=" Wkiol1fwapowaqrzaadkintkxja509.png-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/24/wKioL1fWAS-R-hyvAADNkvG6j-I669.png-wh_500x0-wm_3 -wmp_4-s_2451349868.png "title=" image 4.png "alt=" Wkiol1fwas-r-hyvaadnkvg6j-i669.png-wh_50 "/>


3. Import the corresponding library files in the folder respectively;

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/24/wKioL1fWAgLwN2f7AAEDNaYrTNY912.png-wh_500x0-wm_3 -wmp_4-s_956664706.png "title=" image 5.png "alt=" Wkiol1fwaglwn2f7aaednayrtny912.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/87/27/wKiom1fWAj-DG7bfAAE01PCBKwI596.png-wh_500x0-wm_3 -wmp_4-s_2298488129.png "title=" image 6.png "alt=" Wkiom1fwaj-dg7bfaae01pcbkwi596.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/87/24/wKioL1fWApuiKe2KAAFNuSyVhZU126.png-wh_500x0-wm_3 -wmp_4-s_964036540.png "title=" image 7.png "alt=" Wkiol1fwapuike2kaafnusyvhzu126.png-wh_50 "/>


4, click OK to complete the creation of user libraries work;


5, the new Web project, such as Hello, directly into the already built Jar package library can be;

Hello, Properties, Java Build Path--Libraries

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/27/wKiom1fWBE6Q1mx5AAF7jI53Das269.png-wh_500x0-wm_3 -wmp_4-s_1285828984.png "title=" image 8.png "alt=" Wkiom1fwbe6q1mx5aaf7ji53das269.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/87/24/wKioL1fWBHvzrIrrAACGIDoCb7Y055.png-wh_500x0-wm_3 -wmp_4-s_3684113434.png "title=" image 9.png "alt=" Wkiol1fwbhvzrirraacgidocb7y055.png-wh_50 "/>

Click "Finish".


At this point, we have imported S2SH related packages, the next new project will be directly from the 5th step to start, to avoid you paste again and again, import path.



This article is from the "11950053" blog, please be sure to keep this source http://11960053.blog.51cto.com/11950053/1851843

Simplifying the introduction of external jar packages in Eclipse and MyEclipse

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.