Error on JME Physics

Hi all,



I followed all the tutorials about configuring the Jme Physics from SVN but it does not worked. I thing it is because I'm using the Vista 64 bits with the java sdk and VM 64 bits, as well.



I'm getting the following error when I try to run a physic sample:



09/07/2009 23:51:23 org.odejava.Odejava <clinit>
SEVERE: Native code library (32 and 64 bit library) failed to load: java.lang.UnsatisfiedLinkError: D:ProjetosJavajME Physics 2implodelibodejava.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
java.lang.UnsatisfiedLinkError: D:ProjetosJavajME Physics 2implodelibodejava.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(Unknown Source)
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at org.odejava.Odejava.<clinit>(Odejava.java:86)
   at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.getImplementationVersion(OdePhysicsSpace.java:188)
   at com.jmex.physics.PhysicsSpace.scanAvailableImplementations(PhysicsSpace.java:373)
   at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:340)
   at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:91)
   at com.jme.app.BaseGame.start(BaseGame.java:70)
   at com.jmetest.physics.TestBasicJoints.main(TestBasicJoints.java:131)
09/07/2009 23:51:23 com.jmex.physics.PhysicsSpace scanAvailableImplementations
WARNING: Failed to use physics implementation 'com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory' due to Exception/Error: java.lang.UnsupportedOperationException: Failed to load natives
java.lang.UnsupportedOperationException: Failed to load natives
   at org.odejava.Odejava.init(Odejava.java:123)
   at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.getImplementationVersion(OdePhysicsSpace.java:188)
   at com.jmex.physics.PhysicsSpace.scanAvailableImplementations(PhysicsSpace.java:373)
   at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:340)
   at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:91)
   at com.jme.app.BaseGame.start(BaseGame.java:70)
   at com.jmetest.physics.TestBasicJoints.main(TestBasicJoints.java:131)
Caused by: java.lang.UnsatisfiedLinkError: D:ProjetosJavajME Physics 2implodelibodejava.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(Unknown Source)
   at java.lang.ClassLoader.loadLibrary(Unknown Source)
   at java.lang.Runtime.loadLibrary0(Unknown Source)
   at java.lang.System.loadLibrary(Unknown Source)
   at org.odejava.Odejava.<clinit>(Odejava.java:86)
   ... 6 more
09/07/2009 23:51:23 class com.jmetest.physics.TestBasicJoints start()
SEVERE: Exception in game loop
java.lang.IllegalStateException: No physics implementation was registered nor found!
   at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:348)
   at com.jmex.physics.util.SimplePhysicsGame.initSystem(SimplePhysicsGame.java:91)
   at com.jme.app.BaseGame.start(BaseGame.java:70)
   at com.jmetest.physics.TestBasicJoints.main(TestBasicJoints.java:131)



Does someone has some help for me?

Thanks a lot!

Jose Ricardo

I have the exact same issue on Mac OS X 10.5.7 on my Mac Pro. I'm also using JVM 1.6 64bit.



Investigating…

i'm not sure, but i think there is no 64 bit odejava.dll maybe you can build it yourself:

https://odejava.dev.java.net/source/browse/odejava/