Comments (5)
This will not work. You need at least 4.1 version of JNA. JNA 3.5.1 doesn't automatically load natives, 4.1 does. You will have to upgrade your local JNA to at least 4.1.0 (this one works good). Are you limited with Java version too? You need to have at least Java 6 to run this.
from hid4java.
Okay thanks. There's one problem though - another project I'm using (LibVLC Java) requires JNA 3.5.2. I don't think that it's possible to run both, is it?
EDIT : I've made the same attempt with JNA 4.1.0 - Same Issue : (Also; Running on Java 1.8_45)
Exception in thread "main" org.hid4java.HidException: Hidapi did not initialise: Unable to load library 'hidapi': Native library (win32-x86/hidapi.dll) not found in resource path ([file:/C:/Users/Will/Documents/NetBeansProjects/Libraries/jna-4.1.0.jar, file:/C:/Users/Will/Documents/NetBeansProjects/Libraries/jna-platform-4.1.0.jar
from hid4java.
One other thing - I do not know if it matters, but I'm developing with the Netbeans IDE.
from hid4java.
Okay I goofed... I downloaded the entire project as a .zip file and tried to make it work as a Java project instead of... whatever it is.
I've never worked with... whatever this is, but when I tried to debug it as is (straight out of the .zip), it worked fine... so I'm sorry for taking your time.
from hid4java.
Hi @AbbottWC. The hid4java project is a Maven project which is how many Java projects are created these days. There's more information in the wiki that may help you become more familiar with the process.
from hid4java.
Related Issues (20)
- Support for Raspberry pi 4 HOT 4
- MacOS ARM incompatible HOT 3
- Unable to open connection to multiple identical devices HOT 1
- HidApi.read returning -2(DEVICE_ERROR) and "Device not initialised" seen when trying to fetch SN, PID HOT 4
- Specify minimum JNA version required HOT 1
- hid4java always uses the libusb variant of libhidapi on linux-x86-64 HOT 1
- support hidapi 0.14.0 HOT 2
- Branch cleanup HOT 1
- Update MVN repository content
- USB HID Set Report and Get Report HOT 10
- How can i read the scanner data. HOT 3
- Pre-release checklist for 0.8.0
- Regression in `hidApiLibrary.hid_open_path(path)` v 0.8 HOT 6
- On Ubuntu 22.04 64bit `WideStringBuffer` is not applicable for `hid_error`
- Support RPi OS "bullseye" aarch64; support old glibc versions HOT 5
- Android support HOT 1
- macOS API calls must be thread safe
- WriteFile: (0x00000005) Access is denied HOT 7
- Threading (?) causing glibc/low level crashes HOT 4
- org.hid4java.HidDevice.read(HidDevice.java:402) java.lang.NegativeArraySizeException: -1 on read failure
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 hid4java.