ClassNotFoundException: org.slf4j.LoggerFactory

后端 未结 10 1216
长发绾君心
长发绾君心 2020-11-28 11:53

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

ClassNotFoundException: org.slf4j.LoggerFactory

I have tried to download s

相关标签:
10条回答
  • 2020-11-28 12:24

    Try downloading jar from here

    You can find, it holds the class you need.

    EDIT

    Seems like the website has changed its structure. You need to choose which jar file you need for your project.

    For slf4j-api jar file for latest version as of now, please visit this link

    For slf4j-simple jar file for latest version as of now, please visit this link

    0 讨论(0)
  • 2020-11-28 12:26

    Add the following JARs to the build path or lib folder of the project:

    1. slf4j-api-1.7.2.jar
    2. slf4j-jdk14-1.7.2.jar
    0 讨论(0)
  • 2020-11-28 12:31

    You'll need to download SLF4J's jars from the official site as either a zip (v1.7.4) or tar.gz (v1.7.4)

    The download contains multiple jars based on how you want to use SLF4J. If you're simply trying to resolve the requirement of some other library (GWT, I assume) and don't really care about using SLF4J correctly, then I would probably pick the slf4j-api-1.7.4.jar since the Simple jar suggested by another answer does not contain, to my knowledge, the specific class you're looking for.

    0 讨论(0)
  • 2020-11-28 12:32

    It needs "slf4j-simple-1.7.2.jar" to resolve the problem.

    I downloaded a zip file "slf4j-1.7.2.zip" from http://slf4j.org/download.html. I extracted the zip file and i got slf4j-simple-1.7.2.jar

    0 讨论(0)
提交回复
热议问题