• Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter. Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running! # Problems using JBullet engine Old topic! Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic. 2 replies to this topic ### #1m41q Members - Reputation: 151 Like 0Likes Like Posted 28 May 2012 - 03:53 AM Hi, 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}">

<!-- 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.

Now my question is, could anyone
- tell me what I got wrong with the ant-file OR
- tell me how I can get JBullet working in another way OR
- has anyone got an idea of anohter physics engine working with Java?

(Btw. I know the issue would be solved if I downgraded LWJGL from 2.8.3 to 2.2.2, but that is currently not an option.)

So, has anyone got an idea, please?

### #2jjd  Crossbones+   -  Reputation: 2122

Like
0Likes
Like

Posted 28 May 2012 - 07:36 AM

Hi m41q,

Unfortunately, I don't know the answer to your problem, but I would suggest that you talk to the developers of LWJGL because this may be an issue they are unaware of. In particular, transitioning from 2.2 to 2.8 is a minor update that should be backwards compatible and it sounds like that is not the case.

Also, this is topic is probably better suited for 'game programming' or 'general programming' than in the maths and physics forum, so you might find more help there.

-Josh

Edited by jjd, 28 May 2012 - 07:37 AM.

--www.physicaluncertainty.com
--irc.freenode.net#gdnet

### #3m41q  Members   -  Reputation: 151

Like
0Likes
Like

Posted 28 May 2012 - 07:53 AM

First of all thx for the reply.
But I think I´m afraid I saw a post somewhere, stating that those indirect buffers are no longer supported because of stability issues, so chances that they will support them again are little : (

better suited for 'game programming' or 'general programming'

I just thought in the physics section had to be more people that are knowing physics engines?