Hello.
I’m trying to use my PS3 Controller with Java and jinput. I downloaded the files and ran the
java -Djava.library.path=. -cp jinput.jar:jinput-test.jar net.java.games.input.test.ControllerReadTest
test application. And it worked fine. Now I use the same source code in my eclipse project but it doesn’t work.
I get the message:
Loading: net.java.games.input.OSXEnvironmentPlugin
java.lang.UnsatisfiedLinkError: /Users/…/lib/libjinput-osx.jnilib:
net.java.games.input.OSXEnvironmentPlugin is not supported
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at net.java.games.input.OSXEnvironmentPlugin$1.run(OSXEnvironmentPlugin.java:78)
at java.security.AccessController.doPrivileged(Native Method)
at net.java.games.input.OSXEnvironmentPlugin.loadLibrary(OSXEnvironmentPlugin.java:70)
at net.java.games.input.OSXEnvironmentPlugin.(OSXEnvironmentPlugin.java:110)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:156)
at sailworld.RobSailer.main(RobSailer.java:42)
The jar file as well as the native libraries are included in the class path and the libjinput-osx.jnilib file is at the position, where the jvm cannot find it.
Can someone help me to get this run?
Thanks CueMex
Edit:
I have a Mac OS X System with an Intel processor