I’m following the Hello collision tutorial but I need the bullet physics jar file. I can only find the jBullet one, which lets me compile the example but when I run it it gives a ClassNotFoundException
.
Heres the full stack trace:
java.lang.NoClassDefFoundError: com/bulletphysics/collision/dispatch/CollisionConfiguration
at com.jme3.bullet.BulletAppState.startPhysics(BulletAppState.java:249)
at com.jme3.bullet.BulletAppState.stateAttached(BulletAppState.java:320)
at com.jme3.app.state.AppStateManager.attach(AppStateManager.java:148)
at mcphysics.mcphysics.JME.simpleInitApp(JME.java:33)
at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:239)
at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:513)
at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:625)
at com.jme3.system.lwjgl.LwjglWindow.create(LwjglWindow.java:466)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:463)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
at com.jme3.app.SimpleApplication.start(SimpleApplication.java:127)
at mcphysics.mcphysics.JME.main(JME.java:24)
Caused by: java.lang.ClassNotFoundException: com.bulletphysics.collision.dispatch.CollisionConfiguration
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 12 more