我是一个才接触J2ee的学生,今天关于hibernate,SQL和Eclipse关联可能出了问题,按照书上写了个简单的插入 但是出现了如下错误
弄了一下午了 ,很是郁闷 求救求救啊
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:152)
at ch03.hibernate.Test.main(Test.java:11)
请高手帮助 如果能加QQ 150578834 更好
能在以后的学习中给予指点
弄了一下午了 ,很是郁闷 求救求救啊
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder
at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)
at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:152)
at ch03.hibernate.Test.main(Test.java:11)
请高手帮助 如果能加QQ 150578834 更好
能在以后的学习中给予指点
我用的是这个hibernate-distribution-3.3.2.GA-dist.zip
还有其他错误吗 能不能加我QQ 给我指点一下 150578834 谢谢 谢谢
看到这句话的,可以得出结论如下:
1、少包
2、错包
3、加包顺序不对
4、启动时未加classpath内