Not instrumented error while running JBullet Basic Demo

So I’ve been trying to get the BasicDemo demo for JBullet working in Netbeans to no avail. I’ve got a new project setup to run the BasicDemo code (as the only file). The lwjgl, jbullet, vecmath, and stack-alloc jars are all in an Ant library that I’m associating with the project.

Here is the error code I get when I try to run.

Exception in thread “main” java.lang.Error: not instrumented
at cz.advel.stack.Stack.alloc(Stack.java:122)
at com.bulletphysics.linearmath.Transform.mul(Transform.java:105)
at com.bulletphysics.linearmath.DefaultMotionState.getWorldTransform(DefaultMotionState.java:74)
at com.bulletphysics.dynamics.RigidBody.setupRigidBody(RigidBody.java:147)
at com.bulletphysics.dynamics.RigidBody.(RigidBody.java:111)
at com.bulletphysics.demos.basic.BasicDemo.initPhysics(BasicDemo.java:160)
at com.bulletphysics.demos.basic.BasicDemo.main(BasicDemo.java:218)

I’ve spent a good deal of time online trying to figure this out, but I’ve realized that I don’t fully understand the build flow to know what I’m doing wrong. The farthest I’ve gotten is that the build.xml needs to have some code to signify the instrumentation. I tried to isolate some corresponding code from the build.xml that comes with JBullet, but it still doesn’t work.

I would really appreciate some help getting this working so I can start to play around with JBullet! Thanks!

Any thoughts or suggestions?

Hi try this ~ it’swork!!