简体   繁体   中英

Jinput library not found in java.library.path

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 both 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.

转到Project-> Propertity-> Java Build Path-> Libraries-> JRE-> Native Livary-> edit:将包含jinput-osx的库文件夹添加为外部文件夹

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM