Help to install physics

Hey in fact i really need help to install physics on Eclipse. Please tell me what i do wrong.

I downloaded it from the CVS repository. I add the ODE-Jni to its (or is it his ?? need to go back to english class :D) library and i specify the path of the library. Then i add the JmePhysics project in the source of Jme but Physics still appears with a red cross indicating an error. when i try to use one of the tutorial file, i get this error



Can anyone tell me what to do next ? I 'm totally lost

java.lang.NoClassDefFoundError: SimplePhysicsGame
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$000(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Caused by: java.lang.ClassNotFoundException: SimplePhysicsGame
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   ... 12 more
Exception in thread "main"

Then i add the JmePhysics project in the source of Jme


You need to add the jme project as a dependent project to jmephysics.
project -> properties -> Java build path -> projects -> Add... -> select jme.

it's added in its project by default…:(…i keep looking



So I tried the TestGenerateGeometry and it works well but the tutorial they will not compile…I think there is something wrong with them but do not know what

Then you need to add the tutorial as a sourcefolder in your jmephysics project.

I have done that but it still does not work…but in fact i don't care if the others run i can try to go on with my tennis game…But there is still this little red cross that i can not find te origin… :x

Ok I finally figured it out…i'll write this down so if any other noob has the same problems he could search my post :wink:



I, somehow, had the jme physics project in the build path of jme and as i added the jme to the physics there was a cycle. Once this cycle has been removed and my tennis game project migrated  to jmephysics everything worked just fine. There is a windows that show errors in eclipse that i had never heard about.



By the way the physics wiki could clearly specify that to implement physics with a BaseGame, only few copy/paste are needed form simplephysicsgame.