wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes The import org.apache.log4j.Logger can not be resolved Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "The import org.apache.log4j.Logger can not be resolved" Watch "The import org.apache.log4j.Logger can not be resolved" New topic
Author

The import org.apache.log4j.Logger can not be resolved

Mani Raju
Ranch Hand

Joined: Oct 09, 2012
Posts: 46
Hi,
In my project i have "import org.apache.log4j.Logger" statement. At this line, i have error " The import org.apache.log4j.Logger can not be resolved. So i downloaded free "log4j-1.1.3.jar" and added into my project as external jar file. Then i restarted the eclipse. Still i am facing the same error.

Any one could help to sort out this issue..........
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

My first suggestion is to get a more recent copy of Log4J - 1.2.17 is the most recent version I have.

Where did you add the JAR file to your project? Double check the build path: right-click the project > Properties > Java Build Path > click the Libraries tab and make sure that the log4j JAR file shows up there.


JBoss In Action
Mani Raju
Ranch Hand

Joined: Oct 09, 2012
Posts: 46
Peter Johnson wrote:My first suggestion is to get a more recent copy of Log4J - 1.2.17 is the most recent version I have.

Where did you add the JAR file to your project? Double check the build path: right-click the project > Properties > Java Build Path > click the Libraries tab and make sure that the log4j JAR file shows up there.






Yes, i downloaded log4j-1.2.12.jar and added into project,now that error resolved,
Thanks Peter .....................
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The import org.apache.log4j.Logger can not be resolved
 
Similar Threads
How to stop myeclipse generate metamodel classes at build?
packages and CLASSPATH
Step by steyp JNDI look up with jboss 7.1
Crystal Report Problem
uploading images and java