2008-10-20

来源:互联网 发布:普通安卓平板刷windows 编辑:程序博客网 时间:2024/06/05 02:02

2008-10-20日 

 

初学java J2EE 框架 昨天看到Hibernate 时 创建hibernate用例,运行时  

报错:Failed to load class org.slf4j.impl.StaticLoggerBinder

 //原因缺少jar包:找不到slf4j相应的jar包 参看网上解答(slf4j 官方有常见错误解答: http://www.slf4j.org/codes.html#log4j_version得知此错误原因是:This error is reported when the org.slf4j.impl.StaticLoggerBinder class could not be loaded into memory. This happens when no appropriate SLF4J binding could be found on the class path. Placing one (and only one) of slf4j-nop.jar , slf4j-simple.jar , slf4j-log4j12.jar , slf4j-jdk14.jar or logback-classic.jar on the class path should solve the problem 故在官方下载 slf4j-1.5.2.zip 解压出slftj-nop-1.5.jar导入项目,后无报错,问题解决。

我将slf4.jar包全部导入项目中 出现了溢出的错误。

还有项目导入jar包 是可以通过右击该项目名/构建路径中

原创粉丝点击