Eclipse cannot import org.apache.log4j .Logger

Recently, I’ve been practicing using log4j, but I keep getting errors when importing from Eclipse

But I have already imported it in the lib below

I guess the JAR package was not imported
If you want to place the JAR under the JDK, right-click and select Build Path –>; Configure Build Path

Then select Add Externsl Jars

Select the package we want to import

Then click Apply and it’s OK.

Read More: