Install Apache common lang 2.5 in Eclipse

New to Eclipse and Java ... can anyone tell me how can I install Apache common lang 2.5 in Eclipse?

http://commons.apache.org/lang/download_lang.cgi

Thanks!

+7
eclipse apache
source share
5 answers

download commons-logging-1.2-bin.zip from http://commons.apache.org/proper/commons-logging/download_logging.cgi

Right-click in your project, then: Project Properties> Java Build Path> Library> Add External JARS

select commons-logging-1.2.jar and commons-logging-1.2-javadoc.jar from the downloaded unzip commons -logging-1.2-bin.zip

+1
source share

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"

+13
source share

You can create a custom library using the Apache Commons Lang in Eclipse. A custom library is a collection of banners (these cans can be stored wherever you like). Once defined, the user library can be reused in various projects.

You can find additional information on how to do this, for example here (in the accepted answer).

After creating a custom library, you can add it to your projects just like any other library (Project Properties → Java Build Path → Libraries → Add Library → User Library → Next → select your library).

+4
source share

You can also do this based on each project.

Right click on your project -> buildpath -> configure buildpath -> Add libraries -> Add jar -> select the jar that you want to add as a dependency on your project

(or use maven, which does all this for you when creating an eclipse project)

+1
source share

If there is no error trying to install any plugin declaring apache.common.lang, you can solve it by simply adding this url to the updated update site: http://download.eclipse.org/tools/orbit/downloads/drops / R20150124073747 / repository /

0
source share

All Articles