(SOLVED) Joystick controller not found

hi guys,

im a little stuck. i have a Logitech Dual Action usb gamepad that i would like to use for input, but when i plug it in and try to run my app with it, or even running TestJoystick.java -nothing happens. i know my gamepad works because i use it to play other games. i don’t think my joystick is being found, unless i am just not loading it into jME correctly.

the following is the relevant portion of the error output i recieved, i tried weeding through but i cannot see why this controller wasnt found.

(im a beginner) can anyone guide me to getting my joystick found and used as input?

error: from TestJoystick.java



Loading: net.java.games.input.DirectAndRawInputEnvironmentPlugin

java.lang.UnsatisfiedLinkError: no jinput-dx8 in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1028)

at net.java.games.input.DirectInputEnvironmentPlugin$1.run(DirectInputEnvironmentPlugin.java:75)

at java.security.AccessController.doPrivileged(Native Method)

at net.java.games.input.DirectInputEnvironmentPlugin.loadLibrary(DirectInputEnvironmentPlugin.java:67)

at net.java.games.input.DirectInputEnvironmentPlugin.(DirectInputEnvironmentPlugin.java:107)

at net.java.games.input.DirectAndRawInputEnvironmentPlugin.(DirectAndRawInputEnvironmentPlugin.java:45)

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 java.lang.Class.newInstance0(Class.java:355)

at java.lang.Class.newInstance(Class.java:308)

at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)

at com.jme3.input.lwjgl.JInputJoyInput.loadJoysticks(JInputJoyInput.java:77)

at com.jme3.input.InputManager.(InputManager.java:160)

at com.jme3.app.Application.initInput(Application.java:268)

at com.jme3.app.Application.initialize(Application.java:483)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:203)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:129)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

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

java.lang.UnsatisfiedLinkError: no jinput-raw in java.library.path

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1028)

at net.java.games.input.RawInputEnvironmentPlugin$1.run(RawInputEnvironmentPlugin.java:75)

at java.security.AccessController.doPrivileged(Native Method)

at net.java.games.input.RawInputEnvironmentPlugin.loadLibrary(RawInputEnvironmentPlugin.java:67)

at net.java.games.input.RawInputEnvironmentPlugin.(RawInputEnvironmentPlugin.java:107)

at net.java.games.input.DirectAndRawInputEnvironmentPlugin.(DirectAndRawInputEnvironmentPlugin.java:46)

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 java.lang.Class.newInstance0(Class.java:355)

at java.lang.Class.newInstance(Class.java:308)

at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)

at com.jme3.input.lwjgl.JInputJoyInput.loadJoysticks(JInputJoyInput.java:77)

at com.jme3.input.InputManager.(InputManager.java:160)

at com.jme3.app.Application.initInput(Application.java:268)

at com.jme3.app.Application.initialize(Application.java:483)

at com.jme3.app.SimpleApplication.initialize(SimpleApplication.java:203)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:129)

at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:205)

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

net.java.games.input.DirectAndRawInputEnvironmentPlugin is not supported



i have not seen the IllegalStateException “Cannot find any joysticks!” that i had expected from reading the testcase after inputManager.getJoysticks() is called, so the inputmanger may recognize that there is one, i just cant seem to use it.



i tried downloading the jinput-dx8.dll and jinput-raw.dll files from the trunk but i dont know where to place them.

is there a plugin i need to install?



i am running windows vista on a dual core 3.4GHz, 2GB ram, Nvidia GeForce 7600 GS

Is this beta?

yes, im using the beta.