Créer un site internet

Add jar to lib folder Eclipse

This is a quick quick guide to how add a jar to a lib folder. Let's add log4j jar to an existing java project.

Log4j is a flexible logging library, an open source project from Apache.

1. Download the Log4j zip file from http://logging.apache.org/log4j/1.2/download.html

2. unzip the downloaded file 

Image 25 05 2019 a 10 36

 

3. Create the lib folder in the root of the project and copy the log4j jar in the lib folder

 

Image 25 05 2019 a 11 02

4. Use a lib folder as a source folder

Capture d e cran 2019 05 25 a 11 05 37

5. Right click on the log4j jar and add it to the build path

Capture d e cran 2019 05 25 a 11 06 246. The jar is now in the Referenced Libraries and can be used.

Capture d e cran 2019 05 25 a 11 28 04

 

Add a comment