How do I add the log4j-core-2.x jar?

Viewed 38

PROBLEM: I'm missing the log4j-core-2.x jar in my classpath.


I've made a Java project (not Maven) and I've been following this tutorial to be able to read an Excel document. I can display the information in the console, however it gives me an error saying:

ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...

So, I'm missing the log4j-core-2.x jar in the classpath. I have the log4j-api-2.x (log4j-api-2.17.2) jar file, that was included when I downloaded the ZIP-file from Apache POI. I've Googled, searched here on SO and searched for information on Log4j on how to solve the problem, but I still don't understand. The jar is nowhere to be found in the zip-file so how can I add it to the classpath?

0 Answers
Related