java.lang.ClassNotFoundException: org.apache.log4j.Level

前端 未结 3 816
忘掉有多难
忘掉有多难 2020-12-25 13:24

I\'m trying to use hibernate 3.5.1 final in a swing application and here are the jars I\'m using:

  • hibernate-core-3.5.1-Final
相关标签:
3条回答
  • 2020-12-25 13:42

    You need to download log4j and add in your classpath.

    0 讨论(0)
  • 2020-12-25 13:57

    You also need to include the Log4J JAR file in the classpath.

    Note that slf4j-log4j12-1.6.4.jar is only an adapter to make it possible to use Log4J via the SLF4J API. It does not contain the actual implementation of Log4J.

    0 讨论(0)
  • 2020-12-25 14:03

    In my environment, I just added the two files to class path. And is work fine.

    slf4j-jdk14-1.7.25.jar
    slf4j-api-1.7.25.jar
    
    0 讨论(0)
提交回复
热议问题