Failed to load natives

I created a small little application to display particles using Java Webstart and JME.

http://www.akebulan.com/social/software/rpg.jnlp



It works when I run it as a stand alone application via Netbeans.

And it did work using Java Webstart a few day ago.

But now I get this exception.



java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException: Failed to load natives

at com.jme.util.GameTask.invoke(Unknown Source)

at com.jme.util.GameTaskQueue.execute(Unknown Source)

at com.jmex.game.StandardGame.update(Unknown Source)

at com.jmex.game.StandardGame.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.UnsupportedOperationException: Failed to load natives

at org.odejava.Odejava.init(Odejava.java:115)

at com.jmex.physics.impl.ode.OdePhysicsSpace.<init>(OdePhysicsSpace.java:308)

at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.create(OdePhysicsSpace.java:197)

at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:325)

at com.akebulan.gamestate.BaseGameState.init(BaseGameState.java:74)

at com.akebulan.gamestate.BaseGameState.<init>(BaseGameState.java:67)

at com.akebulan.gamestate.CustomizeState.<init>(CustomizeState.java:50)

at com.akebulan.test.CustomApp$1.call(CustomApp.java:65)

at com.akebulan.test.CustomApp$1.call(CustomApp.java:64)

… 5 more

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:86)

… 13 more





Can someone give it a try and tell me if works.



Thanks Brothers

irrisor said:

You have to either
a) put odejava.dll/so/jnilib into the respective sign/jars1/*-native.jar files
or
b) add a native section to odejava-jni.jnlp and put the files in the jars referenced there


That did the trick.

Thanks

I get the same error.



Looking at the execution file… lots of resources were just other *jnlp files. Is this normal for physics implementations? For me all the resources were just jar files (except for lwjgl i think)… but I did not use physics.

You have to either

a) put odejava.dll/so/jnilib into the respective sign/jars1/*-native.jar files

or

b) add a native section to odejava-jni.jnlp and put the files in the jars referenced there