Detailed steps -
0) Download commons-lang-2.5-bin.zip from Apache Commons - Lang Downloads http://commons.apache.org/lang/download_lang.cgi Expand the archive in a directory (for example, \ projects \ commons-lang-2.5)
In Eclipse -
one). Put the library in the Java build path
Eclipse → Preferences: Java - build path - user libraries click the "Create ..." button, and in the "User library name:" enter "appache-commons-lang".
Select "appache-commons-lang" in the "Defined user libraries" list, and then click the "Add JARs ..." button and go to commons-lang-2.5.jar (in the folder you saved earlier) and select it.
In "Defined User Libraries" under commons-lang-2.5.jar, you must specify "Source Attachment" and "Javadoc Location". For each of them, select it, then click "Change ...", then "External file" and find the corresponding jar (commons-lang-2.5-sources.jar and commons-lang-2.5-javadoc.jar)
2) In the project, add this user library. In the Package Explorer, right-click the name of the project, open "Properties" and select the "Libraries" tab; click the "Add Library ..." button, select "User Library", "Next" in the list, check [x] appache-commons-lang and click "Finish"
tom
source share