Jme-physic 2 problem

I follow the guide and had successfully build jME and jME Physics  on Netbeans 6.0 Beta 2. I

can run TestChoser on jME just fine, but when i try TestChoser for jME Physics i got this error:

init:
deps-jar:
compile-single:
run-single:
19 พ.ย. 2550 17:32:36 jmetest.TestChooser start
INFO: Composing Test list...
19 พ.ย. 2550 17:32:37 jmetest.TestChooser find
INFO: Searching for Demo classes in "physics".
19 พ.ย. 2550 17:32:40 com.jme.system.PropertiesIO load
WARNING: Could not load properties. Creating a new one.
19 พ.ย. 2550 17:32:40 class com.jmetest.physics.ragdoll.TestSimpleRagDoll start()
SEVERE: Exception in game loop
java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:823)
        at java.lang.System.loadLibrary(System.java:1030)
        at org.lwjgl.Sys$1.run(Sys.java:75)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:68)
        at org.lwjgl.Sys.loadLibrary(Sys.java:84)
        at org.lwjgl.Sys.<clinit>(Sys.java:101)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:111)
        at com.jme.system.lwjgl.LWJGLPropertiesDialog.<init>(Unknown Source)
        at com.jme.app.AbstractGame.getAttributes(Unknown Source)
        at com.jme.app.BaseGame.start(Unknown Source)
        at com.jmetest.physics.ragdoll.TestSimpleRagDoll$2.run(TestSimpleRagDoll.java:118)
BUILD SUCCESSFUL (total time: 4 seconds)



I'm I missing something..?

This means you have not setup the java.library.path correctly. See wiki or forum (search for java.library.path) for details.

I think i made all thing true with the tutorial i think i set VM Option not true for my lib



my JME_CVS path

C:Documents and SettingsAdministratorMy DocumentsNetBeansProjectsJME_CVSjme



MY_PATH_TO_JME-PHYSICS-2_CVS path

C:Documents and SettingsAdministratorMy DocumentsNetBeansProjectsMY_PATH_TO_JME-PHYSICS-2_CVSjmephysics



MY_PATH_TO_JME-PHYSICS-2_PROJECT path

C:Documents and SettingsAdministratorMy DocumentsNetBeansProjectsMY_PATH_TO_JME-PHYSICS-2_PROJECTjME-Physics_2



and i set VM Option is -Djava.library.path=JME_CVSjmelib;MY_PATH_TO_JME-PHYSICS-2_CVSjmephysicsimplodelib



I'm I missing something…?

Well, you really need to write the whole thing in that field, not just JME_CVS or MY_PATH_TO_JME-PHYSICS-2_CVS… that is, your VM option must be:


-Djava.library.path="C:Documents and SettingsAdministratorMy DocumentsNetBeansProjectsJME_CVSjmelib";"C:Documents and SettingsAdministratorMy DocumentsNetBeansProjectsMY_PATH_TO_JME-PHYSICS-2_CVSjmephysicsimplodelib"


Hello again everyone. My tries to merge jME with jMEPhysics still continue
Export of jME works find, but jMEPhysics give me the creep.
I get following error message

I hope you can help and its enough information....

20.11.2007 11:25:43 class com.jmetest.physics.TestBasicRepresentation start()
SCHWERWIEGEND: Exception in game loop
java.lang.IllegalStateException: No physics implementation was registered nor found!
at com.jmex.physics.PhysicsSpace.create(PhysicsSpace.java:333)
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)

My suggestion are the libaries, but I have all imported.
Maybe a problem with the package paths since I imported them into my jME project?

Looking forward for reply

You need one “implementation” (from the impl folder, ODE or JOODE currently) in the classpath.


To understand correctly:

I should copy the impl folder inside of scr and afterwards implement the jars again inside the project.
Do I understand it right?

No, of course not. Simply add the impl/ode/src folder as source path and/or include the jar build from that in the classpath.

Don’t get it work

Here is a screenshot.





http://media1.converdge.com/uploads/94/18/5c/53/85/9b/2f/2c/be/8f/5e/3e/b1/1e/7d/94185c53859b2f2cbe8f5e3eb11e7df4@t13.jpg



Hope that help :’(

Did you add jme in the projects tab to jme-physics? If not, you should do that first.



Also, check with a lot of care the guide: http://www.jmonkeyengine.com/wiki/doku.php?id=setting_up_netbeans_5.0_to_build_jme_and_jme-physics_2 and make sure you are not skipping any step.

jME works fine, I will try the tutorial for NetBeans.  Maybe it helps, but not sure, because I work with eclipse.



Did you add jme in the projects tab to jme-physics?

I would say yes, but I 'm not so sure what you want. jME and jMEP2 works fine as standalone, but I try to merge them in one Projekt called StarLynx. jME works, jMEP2 not, but I will try.

Thanks for your advice!





EDIT:

It works, and I learned more about Eclipse. I didn't know how exactly what Eclipse makes tick, but thanks to you guys I finally managed it and understand. Now my questions seem for me like real greenhorn questions. But afterwards everyone knows it better.