开发者

Jinput library not found in java.library.path

开发者 https://www.devze.com 2023-02-22 18:50 出处:网络
I am trying to use jinput with a wrapper library (procontroll) in a Java application on OS X. The problem is in the jinput library. When control gets to net.java.games.input.OSXEnvironmentPlugin\'s S

I am trying to use jinput with a wrapper library (procontroll) in a Java application on OS X.

The problem is in the jinput library. When control gets to net.java.games.input.OSXEnvironmentPlugin's System.loadLibrary call, which looks for "jinput-osx", this call throws an UnsatisfiedLinkError.

I have downloaded the latest jinput libraries from jinput.dev.java.net, discovered the java.library.path for my application by println()'ing it, and put bot开发者_运维问答h the jinput.jar and libjinput-osx.jnilib files in this directory.

Does anyone have ideas as to why this library isn't loading or how to fix it? Thanks.


go to Project->Propertity->Java Build Path->Libraries-> JRE->Native Livary->edit: add the library folder containing jinput-osx as the external folder

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号