Org Apache Log4j Logger Jar Download

I am trying to build a simple java application in eclipse that uses log4j to make logs (I intend to export it as a jar file).

  1. Apache Jar Files
  2. Log4j 1.2.17 Jar Download
  3. Commons Logging Jar
  4. Org Apache Log4j Logger Jar Download Windows

Spigot says I'm using org.apache.logging.log4j.core.Logger but I'm importing another class. Discussion in 'Spigot Plugin Development' started by Alex0589, Mar 14, 2019 at 4:55 PM. Download apache-log4j-1.2.15.jar. Apache-log4j/apache-log4j-1.2.15.jar.zip( 357 k) The download jar file contains the following class files or Java source files.

But when I try to import org.apache.log4j.Logger in the java file, I get an error as follows

Apache Jar Files

Could someone please help me with this?

AmberAmber
3491 gold badge7 silver badges28 bronze badges

3 Answers

You can find the class 'org.apache.log4j.Logger' in the log4j-X.X.XX.jar

This jar must be included in your build path.

If you have a maven project you can just add a dependency

Otherwhise you have to download the jar and add the jar manually to your build path.

tomastomas

Not web project, I mean, in plain Java project, it don't know the import jar file automatically. It mean, as to your structure, having jar in lib folder is not enough. You need to add this jar under lib folder manually to your class path.

You can do manually like this:

Org Apache Log4j Logger Jar Download

Hope it help.

Ye WinYe Win

Log4j 1.2.17 Jar Download

You need to download log4j package from link given below

Commons Logging Jar

and then left click on your project logtestjava > properties > Java build path > classpath > add all jars of log4j package

Mayank RAJPUTMayank RAJPUT

Org Apache Log4j Logger Jar Download Windows

Not the answer you're looking for? Browse other questions tagged javaeclipsejarlog4j or ask your own question.