Closed GoogleCodeExporter closed 8 years ago
This looks like the problem I had when using this library.
To solve my problem, I did as follows:
1) remove the .jnilib file from the project build-path
2) make sure that the hidapi.jar file is included in the project build-path
3) go: Configure project build path and select the 'libraries' tab.
4) click the pull-down arrow beside the hidapi.jar include
5) doubleclick the 'Native library location', and select the location of the
.jnilib file
Explanation: The libhidapi-jni-64.jnilib is not an actual Java library, it is
the native interface for the library. The actual library to include is the
hidapi.jar. By itself though the hidapi.jar doesn't do anything, it needs a
native library to work with. And so we tell it to use the
libhidapi-jni-64.jnilib as the native library.
I think .jnilib is specific to Mac OSX, if you wanted to do this on windows you
would select the .dll file instead.
Hope that helps!
Original comment by scott.g....@gmail.com
on 25 May 2012 at 12:15
Please use new build of JavaDrone.
If you are still having problems open a bug report in JavaDrone project.
Original comment by kroko...@gmail.com
on 1 Aug 2012 at 1:40
Original issue reported on code.google.com by
rjdura...@gmail.com
on 6 Apr 2012 at 3:09