Hi guys, sorry for taking that thread back but it seems I have the same problem…
I did follow exactly the wiki instructions from here
http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_eclipse_to_build_jme-physics
It fails when I try to run one of the test inside TestChooser.Java
I'm on Mac OS X, PPC.
I used the native libodejava.jnilib from CVS. I tried with the other one found in this thread but it didn't want to run (Caused by: java.lang.UnsatisfiedLinkError: Wrong native version! Expected 0.3.1, but found 0.3)
Thanks for your help!
1 nov. 2007 13:15:51 jmetest.TestChooser start
INFO: Composing Test list…
11 nov. 2007 13:15:52 jmetest.TestChooser find
INFO: Searching for Demo classes in "physics".
11 nov. 2007 13:15:58 org.odejava.Odejava <clinit>
GRAVE: Native code library (32 and 64 bit library) failed to load: java.lang.UnsatisfiedLinkError: /Users/gagnonje/Mes documents/Universite/Automne2007/GenieLogicielOrienteObjet/livrable/Source/jMEphysics2/impl/ode/lib/libodejava.jnilib:
java.lang.UnsatisfiedLinkError: /Users/gagnonje/Mes documents/Universite/Automne2007/GenieLogicielOrienteObjet/livrable/Source/jMEphysics2/impl/ode/lib/libodejava.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at org.odejava.Odejava.<clinit>(Odejava.java:88)
at com.jmex.physics.impl.ode.OdePhysicsSpace.<init>(OdePhysicsSpace.java:309)
at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.create(OdePhysicsSpace.java:198)
at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:330)
at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:90)
at com.jme.app.BaseGame.start(BaseGame.java:65)
at com.jmetest.physics.TestBasicRepresentation.main(TestBasicRepresentation.java:147)
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:585)
at jmetest.TestChooser.start(TestChooser.java:414)
at com.jmetest.physics.TestChooser.main(TestChooser.java:47)
11 nov. 2007 13:15:58 class com.jmetest.physics.TestBasicRepresentation start()
GRAVE: Exception in game loop
java.lang.UnsupportedOperationException: Failed to load natives
at org.odejava.Odejava.init(Odejava.java:125)
at com.jmex.physics.impl.ode.OdePhysicsSpace.<init>(OdePhysicsSpace.java:309)
at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.create(OdePhysicsSpace.java:198)
at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:330)
at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:90)
at com.jme.app.BaseGame.start(BaseGame.java:65)
at com.jmetest.physics.TestBasicRepresentation.main(TestBasicRepresentation.java:147)
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:585)
at jmetest.TestChooser.start(TestChooser.java:414)
at com.jmetest.physics.TestChooser.main(TestChooser.java:47)
Caused by: java.lang.UnsatisfiedLinkError: /Users/gagnonje/Mes documents/Universite/Automne2007/GenieLogicielOrienteObjet/livrable/Source/jMEphysics2/impl/ode/lib/libodejava.jnilib:
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at org.odejava.Odejava.<clinit>(Odejava.java:88)
… 12 more
We are still lacking universal binaries for the new odejava-jni version, sorry for the inconvenience. Intel Mac works, ppc does not :|.
See this post for an error description - maybe you can help out?
Thanks for the answer.
Unfortunately I'm not an expert in linking problems
It seems it worked with odejava 0.30 version. Which version of jMEphysics can use 0.30? Can I go back at a specific time on CVS (around september 10?)
Thanks.
Uh, you should not use the new tests with the old library. Replace the tests as well.