-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Welche Version von slf4j verwenden?
PostPosted: Tue Oct 14, 2008 3:26 pm 
Newbie

Joined: Tue Oct 14, 2008 1:02 pm
Posts: 4
bei mir wirft die Zeile

Code:
AnnotationConfiguration config = new AnnotationConfiguration();


immer wieder diesen fehler:
Code:
java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
   at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:151)
   at src.DataBase.createConfig(DataBase.java:22)
   at src.DataBase.buildDataBase(DataBase.java:11)
   at src.CP_Controller.simpleInitGame(CP_Controller.java:65)
   at com.jme.app.BaseSimpleGame.initGame(BaseSimpleGame.java:503)
   at com.jme.app.BaseGame.start(BaseGame.java:69)
   at src.CP_Controller.init(CP_Controller.java:38)
   at src.CP_TestDriver.main(CP_TestDriver.java:10)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   ... 8 more


das liegt wohl daran, dass ich die falsche slf4j library verwende.. wenn ich allerdings eine andere verwende wie die slf4j-aoi, dann kommt ein andere fehler:

nämlich static binding NoClassDefFoundError


weiss jemand was ich dagegen tun kann?

danke


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2008 6:12 am 
Pro
Pro

Joined: Tue Jun 12, 2007 4:13 am
Posts: 209
Location: Berlin, Germany
du brauchst 2 libraries:
- slf4j-api-1.4.3.jar und
- slf4j-log4j12-1.4.3.jar

Entscheidend ist nicht die genaue Version (bei mir halt 1.4.3), sondern dass beide jars im classpath sind.

_________________
Carlo
-----------------------------------------------------------
please don't forget to rate if this post helped you


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.