Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .....................
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic