I was searching for a good physics engine, when I discovered JBullet, a java port of Bullet; compatible with LWJGL.
The problem with JBullet is, that LWJGL got updated, and JBullet not, for a long time:
LWJGL now doesn´t support "indirect Buffers" anymore and JBullet uses them; for that problem I found this solution:
http://blog.lolyco.com/sean/2011/05/14/trying-out-jbullet-intbuffer-is-not-direct/
This guy fixed the problem and recompiled JBullet.jar.
When I tried to do this, I got some errors and was able to solve most of them, but now I get an error when compiling using the ant-script that goes with JBullet. I neither understand it, nor a soultion on the internet was to be found:
BUILD FAILED
D:\workspace\J-workspace\JBullet\build.xml:77: java.lang.IllegalStateException: can't find set method for class java.lang.Object
build.xml: 77 refers to the ant-script, relevant section here:
<target name="instrument-classes">
<taskdef name="instrument-stack"
classname="cz.advel.stack.instrument.InstrumentationTask"
classpath="${run.classpath}">
</taskdef>
<!-- Next line is important: -->
<instrument-stack dest="${build.classes.dir}" packageName="com.bulletphysics" isolated="true">
<fileset dir="${build.classes.dir}" includes="**/*.class"/>
</instrument-stack>
</target>
I never worked with ant-files before and couldn´t find a solution for this error.