• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..........
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .....................
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Can anyone send me the link, where i have to download log4j versions. I am getting error like log4j Cannot be resolved.
reply
    Bookmark Topic Watch Topic
  • New Topic