I've followed the steps in this tutorial exactly to set up JInput 2.0.7, but I keep getting the following error:
Loading: net.java.games.input.OSXEnvironmentPlugin
java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.Object;
at net.java.games.input.OSXHIDDevice.addElements(OSXHIDDevice.java:163)
at net.java.games.input.OSXHIDDevice.addElements(OSXHIDDevice.java:172)
at net.java.games.input.OSXHIDDevice.getElements(OSXHIDDevice.java:178)
at net.java.games.input.OSXEnvironmentPlugin.createControllersFromDevice(OSXEnvironmentPlugin.java:226)
at net.java.games.input.OSXEnvironmentPlugin.enumerateControllers(OSXEnvironmentPlugin.java:262)
at net.java.games.input.OSXEnvironmentPlugin.<init>(OSXEnvironmentPlugin.java:136)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)
at net.java.games.input.test.ControllerReadTest.<init>(ControllerReadTest.java:253)
at net.java.games.input.test.ControllerReadTest.main(ControllerReadTest.java:302)
It seems to be an error with the class itself, but I haven't seen this error anywhere else, and the article was published just last year as well. Is this a problem with JInput, or did I do something wront?