i am getting this error when trying to run the lesson 8 example program for jme physics:
java.lang.NoSuchMethodError: com.jme.renderer.ColorRGBA.set(Lcom/jme/renderer/ColorRGBA;)V
at com.jmex.physics.material.Material.setDebugColor(Material.java:255)
at com.jmex.physics.material.Material.<clinit>(Material.java:96)
at com.jmex.physics.PhysicsSpace.getDefaultMaterial(PhysicsSpace.java:183)
at com.jmex.physics.PhysicsNode.getMaterial(PhysicsNode.java:525)
at com.jmex.physics.PhysicsCollisionGeometry.getMaterial(PhysicsCollisionGeometry.java:200)
at com.jmex.physics.impl.ode.DynamicPhysicsNodeImpl.computeMass(DynamicPhysicsNodeImpl.java:361)
at com.jmex.physics.impl.ode.DynamicPhysicsNodeImpl.setCenterOfMass(DynamicPhysicsNodeImpl.java:333)
at Lesson8.simpleInitGame(Lesson8.java:85)
at com.jme.app.BaseSimpleGame.initGame(Unknown Source)
at com.jme.app.BaseGame.start(Unknown Source)
at Lesson8.main(Lesson8.java:257)
at __SHELL4.run(__SHELL4.java:7)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at bluej.runtime.ExecServer$3.run(ExecServer.java:792)
line 85 reads…
player.setCenterOfMass( new Vector3f( 0, -0.5f, 0 ) );
anyone know whats going on?
EDIT: i just tried re downloading jme and i still get the problem…
according to an older post its something to do with the versions, does anyone know which 2 i should have which match?
You are using incompatible binaries of jME Physics 2 and jME - recompile jME Physics 2 or use the jME Version which comes with your jME Physics 2 binaries.
I will release a jME Physics version 2.1 which works with jME 1.0, soon.