ClassNotFoundException: org.slf4j.LoggerFactory

junaidp picture junaidp · Jan 27, 2012 · Viewed 141.8k times · Source

I am trying to run GWT RequestFactory and facing this error:

ClassNotFoundException: org.slf4j.LoggerFactory

I have tried to download slf4j-api-1.3.1.jar but it didnt resolve the issue

Any idea exactly which jar I need to download ?

Answer

CharlieL picture CharlieL · Oct 14, 2012

Better to always download as your first try, the most recent version from the developer's site

I had the same error message you had, and by downloading the jar from the above (slf4j-1.7.2.tar.gz most recent version as of 2012OCT13), untarring, uncompressing, adding 2 jars to build path in eclipse (or adding to classpath in comand line):

  1. slf4j-api-1.7.2.jar
  2. slf4j-simple-1.7.2.jar

I was able to run my program.