Comments (2)
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 [email protected]
on 25 May 2012 at 12:15
from javahidapi.
Please use new build of JavaDrone.
If you are still having problems open a bug report in JavaDrone project.
Original comment by [email protected]
on 1 Aug 2012 at 1:40
- Changed state: Invalid
from javahidapi.
Related Issues (20)
- Reading input reports via GET_REPORT to EP0 not supported?
- How to detect insertion and removal events with javahidapi?
- parameter incorrect error when writing data to the USB HID device HOT 3
- Java byte is no a right type to pass BYTES
- NullPointerException for ubuntu 12.04 HOT 1
- Trouble using the writing after using it once
- Write function not working on MAC OS X 10.7.5 HOT 1
- Device.Write() throwing Invalid Parameter Error HOT 1
- NullPointerException in HIDManager.openByPath() and openById() HOT 1
- Library crashes under OSX 10.9
- Closing hid device after writing causes Java vm to crash on Mac
- Windows 8.1 suspends HID connections through USB
- Please fix the stack guard
- CRC Error in Windows
- Null Pointer error on list device() method --java.lang.reflect.InvocationTargetException HOT 1
- Error opening device by id on windows 8
- Incorrect Function error when writing to device
- Not able to read DataLogic Scanner, Device is null with Windows 7 and Windows 8.1
- did not claim interface 0 before use
- Cannot open the device (java.lang.NullPointerException)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javahidapi.