UnsatisfiedLinkError org.odejava.Odejava

I am getting this error whenever I try to run any of the examples or extend SimplePhysicsGame.

Whatever version I had earlier worked fine, but I downloaded the current one from cvs and it no longer works.


Oct 31, 2007 10:00:02 PM org.odejava.Odejava <clinit>
SEVERE: Native code library (32 and 64 bit library) failed to load: java.lang.UnsatisfiedLinkError: no odejava in java.library.path
java.lang.UnsatisfiedLinkError: no odejava in java.library.path
   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: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 Test.main(Test.java:64)
Oct 31, 2007 10:00:02 PM class Test start()
SEVERE: 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 Test.main(Test.java:64)
Caused by: java.lang.UnsatisfiedLinkError: no odejava in java.library.path
   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:88)
   ... 6 more


This means that Java is not finding the library… in order to run Physics projects, you need to add <jme_physics2>/impl/ode/lib to your -Djava.library.path command line argument… Check the getting started guides to see how to do it for your IDE (if you use one).

duenez said:

This means that Java is not finding the library... in order to run Physics projects, you need to add <jme_physics2>/impl/ode/lib to your -Djava.library.path command line argument... Check the getting started guides to see how to do it for your IDE (if you use one).

Ah, sorry, I feel really dumb now.