使用JBox2D DebugDraw与Slick2d的问题

时间:2016-04-21 09:53:31

标签: java box2d slick2d jbox2d

我正在写一个小游戏,我使用Slick2D和JBox2D。现在我的问题: 我尝试使用DebugDraw作为引擎。但我在互联网上找到的每个版本都不起作用。他们抛出以下异常:

Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
  at org.jbox2d.pooling.normal.MutableStack.<clinit>(MutableStack.java:35)
  at org.jbox2d.pooling.normal.DefaultWorldPool.<init>(DefaultWorldPool.java:66)
  at org.jbox2d.dynamics.World.<init>(World.java:122)
  at Windows.GameState.init(GameState.java:36)
  at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:171)
  at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:393)
  at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:317)
  at HTLin2D.main(HTLin2D.java:38)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
  at java.net.URLClassLoader$1.run(Unknown Source)
  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)
  ... 8 more

如果需要,我可以发布我正在使用的DebugDraw版本。使用的JBox2D版本是2.1.2.3。

0 个答案:

没有答案