Web start Joystick problem

Hi guys.  I'm finally able to get my project working as a web start with the physics and the jme and all that hotness working.  There's just one small thing that's driving me nuts: getting the joystick support to work.  It works when I run my project from Eclipse, but as a web start I get this error:



com.jme.input.joystick.JoystickInput get

WARNING: Joystick support disabled due to error:

java.lang.RuntimeException: Error creating input provider

at com.jme.input.joystick.JoystickInput.get(Unknown Source)

at jmetest.input.TestJoystick.main(TestJoystick.java:52)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at com.sun.javaws.Launcher.executeApplication(Launcher.java:1178)

at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1125)

at com.sun.javaws.Launcher.continueLaunch(Launcher.java:968)

at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:522)

at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)

at com.sun.javaws.Launcher.run(Launcher.java:165)

at java.lang.Thread.run(Thread.java:613)

Caused by: java.lang.reflect.InvocationTargetException

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

… 13 more

Caused by: java.lang.RuntimeException: Initalizing joystick support failed

at com.jme.input.joystick.lwjgl.LWJGLJoystickInput.<init>(Unknown Source)

… 17 more

Caused by: org.lwjgl.LWJGLException: Failed to initialise controllers

at org.lwjgl.input.Controllers.create(Controllers.java:61)

… 18 more

Caused by: java.lang.NoClassDefFoundError: net/java/games/input/ControllerEnvironment

at org.lwjgl.input.Controllers.create(Controllers.java:38)

… 18 more



I copied all the web start files directly from jmonkeyengine.com/webstart.  Could it be some native library I'm missing?  I'm using a mac with Java 1.5.     

I don't know how, but you are missing the JInput classes. I'm not sure off the top of my head how LWJGL distributes them, but they should be in there somewhere.



HTH



Endolf

Thanks Endolf!  That was it.  I was missing both the jinput.jar and the native libraries.