Weird problem

everything seems to work fine (box dropping through gravity, etc.) except of this error:

SEVERE: Exception in game loop

java.lang.NoSuchMethodError: com.jme.renderer.ColorRGBA.set(Lcom/jme/renderer/ColorRGBA;)V

        at com.jmex.physics.material.Material.setDebugColor(

        at com.jmex.physics.material.Material.<clinit>(

        at com.jmex.physics.PhysicsSpace.getDefaultMaterial(

        at com.jmex.physics.PhysicsNode.getMaterial(

        at com.jmex.physics.PhysicsCollisionGeometry.getMaterial(

        at com.jmex.physics.material.MaterialContactCallback.adjustContact(

        at com.jmex.physics.PhysicsSpace.adjustContact(

        at com.jmex.physics.impl.ode.OdePhysicsSpace.iterateContacts(

        at com.jmex.physics.impl.ode.OdePhysicsSpace.computeTimeStep(

        at com.jmex.physics.impl.ode.OdePhysicsSpace.update(

        at com.jmex.physics.util.states.PhysicsGameState.update(

        at mechgame.Main.simpleUpdate(

        at Source)

        at Source)

        at mechgame.Main.main(

i'm not sure how to solve this because ColorRGBA.set(ColorRGBA) does exist!



Maybe you have inconsistent libraries (old jars, old class files etc.)?

i have redownloaded all the jars from jME and still no prevail.

anything that has to do with the Material class pops up this error.

any other usage of ColorRGBA.set() [in my case] doesn't have errors.

The set method returns a ColorRGBA now (not void). Recompile jME Physics 2 or take matching jar versions of jME and jME Physics 2, please.

note: there is no released version of jME Physics 2 matching the jME v1.0 -  you need to use CVS version in this case.

i see, thanks a lot! gonna go CVS now. :slight_smile: