I'm bad with setting up physics

Using Netbeans.

I started back into Java about a week and a half ago. So far my problems seem to be with implementing classpaths and buildpaths regardless of how many times I read a How-To and add JARs/Folder/etc to my project.

INFO

-Djava.library.path="…jME2jME2_0_1-Stableliblib;…jME2jME2_0_1-Stablelibliblwjglnativewindows;…jME2jME2_0_1-Stableliblibjoglnativewindows;…jME2jME2_0_1-Stableliblibjoglnativewindows_amd64"

  • The first directory "lib/lib" one contains odejava.dll

My included JARs list is lengthy but includes all JME, a JME Physics one compiled by someone on these forums a while back that was worked for numerous other people, the JBullet.jar, odejava-jni.jar, all the lwjgl jars, junit, jogl, jorbis, swt, and gluegen jars all in there too.
odejava-jni.jar and jmephysics2.jar are listed first.
My lengthy runtime error is shown below. My program launches into my "menu" which is jframe, but when I use the "Play" button which deconstructs the frame and launches the 3D game itself it flash up for a second and crashes out. The prog ran before I added in the physics files and implemented the first two physics nodes to try it out.
Any help MUCH appreciated! Let me know if more info is needed, I really want to learn this stuff.

[java]Oct 2, 2010 10:02:09 AM com.jme.app.BaseGame start
INFO: Application started.
Oct 2, 2010 10:02:09 AM com.jme.system.PropertiesGameSettings
INFO: PropertiesGameSettings created
Oct 2, 2010 10:02:09 AM com.jme.system.PropertiesGameSettings load
WARNING: Could not load properties. Creating a new one.
Oct 2, 2010 10:02:09 AM com.jme.app.BaseSimpleGame initSystem
INFO: jME version 2.0 Stable (r4093)
Oct 2, 2010 10:02:09 AM com.jme.input.joystick.DummyJoystickInput
INFO: Joystick support is disabled
Oct 2, 2010 10:02:09 AM com.jme.system.lwjgl.LWJGLDisplaySystem
INFO: LWJGL Display System created.
Oct 2, 2010 10:02:10 AM com.jme.system.lwjgl.LWJGLDisplaySystem getValidDisplayMode
INFO: Selected DisplayMode: 640 x 480 x 16 @60Hz
Oct 2, 2010 10:02:10 AM com.jme.renderer.lwjgl.LWJGLRenderer
INFO: LWJGLRenderer created. W: 640 H: 480 Version: 2.1.0
Oct 2, 2010 10:02:11 AM com.jme.app.BaseSimpleGame initSystem
INFO: Running on: RDPDD
Driver version: null
ATI Technologies Inc. - ATI Radeon HD 4800 Series - 3.2.9252 Compatibility Profile Context
Oct 2, 2010 10:02:11 AM com.jme.renderer.AbstractCamera
INFO: Camera created.
Oct 2, 2010 10:02:11 AM com.jme.util.lwjgl.LWJGLTimer
INFO: Timer resolution: 1000 ticks per second
Oct 2, 2010 10:02:11 AM com.jmex.physics.PhysicsSpace scanAvailableImplementations
INFO: Physics implementation 'com.jmex.physics.impl.physx.PhysXSpace$PhysXFactory' not present.
Oct 2, 2010 10:02:11 AM com.jmex.physics.PhysicsSpace scanAvailableImplementations
WARNING: Failed to use physics implementation 'com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory' due to Exception while creating factory: java.lang.VerifyError: class com.jmex.physics.PhysicsCollisionGeometry overrides final method findPick.(Lcom/jme/math/Ray;Lcom/jme/intersection/PickResults;)V
java.lang.VerifyError: class com.jmex.physics.PhysicsCollisionGeometry overrides final method findPick.(Lcom/jme/math/Ray;Lcom/jme/intersection/PickResults;)V
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at com.jmex.physics.impl.ode.OdePhysicsSpace$OdeFactory.(OdePhysicsSpace.java:173)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.jmex.physics.PhysicsSpace.scanAvailableImplementations(PhysicsSpace.java:366)
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 Attempt2.Launch3D(Attempt2.java:575)
at MenuGui$2.mouseReleased(MenuGui.java:118)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Oct 2, 2010 10:02:11 AM com.jmex.physics.PhysicsSpace scanAvailableImplementations
INFO: Physics implementation 'com.jmex.physics.impl.joode.JoodePhysicsSpace$JoodeFactory' not present.
Oct 2, 2010 10:02:11 AM com.jmex.physics.PhysicsSpace scanAvailableImplementations
INFO: Physics implementation 'com.jmex.physics.impl.jbullet.JBulletPhysicsSpace$JBulletFactory' not present.
Oct 2, 2010 10:02:11 AM class Attempt2 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 Attempt2.Launch3D(Attempt2.java:575)
at MenuGui$2.mouseReleased(MenuGui.java:118)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Oct 2, 2010 10:02:11 AM com.jme.app.BaseSimpleGame cleanup
INFO: Cleaning up resources.
Oct 2, 2010 10:02:11 AM com.jme.app.BaseGame start
INFO: Application ending.[/java]

I guess the “compile that worked for a lot of people” doesnt work :slight_smile: I remember I had to compile jMEPhysics2 myself as well, only to find out that it has severe bugs that will never be fixed… Why dont you start using jME3 instead, download jMP and you are good :wink: If you also enable the nightly update center under Tools->Plugins you can even give valuable feedback on jME3 development 8)



Cheers,

Normen

Well I guess since I can’t run my current project >.< I’ll grab a new SDK instead :(. So are physics built into the jme3? I’m aspiring to make a networkable 3D game , nothing of an MMO size just maybe 2-4 players and 3D with low-end graphics. Can jme3 handle that fine? assuming I get past the compiling and running stage?

Yes. https://wiki.jmonkeyengine.org/legacy/doku.php/jme3

Trying JMonkeyPlatform now. I hope this works smoother. I love programming but hate compiling.

Converting my source code (minus the physics parts) isn’t working in jmp too well. What jars should i bring in aside from the default jme3. I know this seems basic but in the past week and a half classpaths and buildpaths have been the only problems I hit and so I’d love help on making sure those are correct so I can get back to actually coding and testing ideas, the numerous which I’ve resorted to writing in a notebook cause it doesn’t give me compiler errors >.<



I want to use

  • Physics - I have jmephysics2 jar from codeagustin
  • 3d graphics - was using jme2 with lwjgl i think
  • eventually some sort of networking code for connecting 2 clients

So ignoring the last thing. I should include the JARs and be good to go? Cause so far it isn't finding imports to use the SkyBox variable type or the resourcelocator functions that I had used straight out of the jme2 tutorials to get textures.

EDIT: I'm following the tutorials for JME3 first, sorry! thanks for the help thus far, I'll be back if I fail harder.

Its best to create a new “BasicGame” project and copy your old code into the src folder.

Cheers,

Normen