As the the title suggests, I am having trouble getting jBullet to work in Intellij Idea. I get ClassNotFoundExceptions regarding com.bulletphysics.collision.dispatch.CollisionObject. There are no bullet native jars or jbullet.jar in the download and I have jme3-jbullet.jar in my classpath. None of the other jars seem to have anything to do with bullet or physics. EDIT: vecmath.jar is also on my claspath.
EDIT2: running the examples that involve physics complains about not finding com/bulletphysics/collision/broadphase/OverlapFilterCallback
I’m just downloading the release from GitHub and selectively adding jars from the libs folder to my classpath. I’m not adding all of them since some are completely unnecessary (ie. the android jars since my game will not support android) and I don’t want a bloated game.
For some reason jbullet.jar and stack-alloc.jar are not considered dependencies by Gradle so the script that generates the distribution package doesn’t copy them
I created an issue for it here:
@john01dav
Finally, I managed to make native bullet work, despite not specified at -classpath the jme3-jbullet.jar was being loaded!
As I understand, that happened to you too.
Check here for details.