Comments (7)
No worries. hid4java
is very new (less than a few weeks old at present) and born from a particular need that I had to integrate support for a Trezor device into my primary project MultiBit HD.
If I may offer up some suggestions that may help your project get some traction:
- change your package structure to reflect your domain name (e.g.
org.purejavahidapi
) - remove the Eclipse
.classpath
,.project
files using .gitignore (see this article) - introduce Maven/Gradle as your build system and work towards uploading it to Maven Central - this will greatly improve your project's visibility.
If I could ask you make a correction to your README.md
file: hid4java
doesn't install the native libraries, it reads them directly out of the JAR using JNA. The actual problem is that these have to be compiled from the signal11/hidapi
native libraries for each native platform which can be a pain but this is my responsibility as maintainer of hid4java
and downstream users don't need to concern themselves.
from hid4java.
Thanks for bearing with me!
And thanks for the tips, I will consider them.
I'm not great fan of domain name based package names, while I see where it is coming from company/organisation based domains are poor cause companies/organisations change names, merge, collapse, die and may at some point have nothing to do with the library/software they originally wrote. Purchasing a project specific domain is better but it is an extra expense not well suited to non-profict projects … at the end of the day name conflicts are rare, any sane software developer will anyway try to come up with a unique name and today with google that is pretty easy to ensure so the good old 90's domain name trick seems like an overkill. Just my opinion though.
I know about .gitignore, but what is the problem with having those Eclipse files in the project? I know they do not provide much useable functionality and do not always work/transport well outside their original context but in the past I've found that some percentage of noobies find them comforting so lowering the threshold to try a project out.
I don't think I will use Maven myself in a hurry but I am going to provide a .bom and precompiled jars like I do for my PureJavaComm project.
Thanks for noticing and sorry for miss-presenting the native lib aspect of hid4java, I'll fix that ASAP.
Thanks for the links to your Bitcoin related stuff … I find all that very intriguing!
from hid4java.
Fixed the README, hope it is now ok.
from hid4java.
Just checked over the revised README.md and it's all good.
There's no particular problem with the .classpath
files etc it's just that they often contain information specific your own environment that could confuse newbies if, say, their JVM is named differently. Also not everyone uses Eclipse.
Of course, that's just my opinion.
Best of luck with your project, I'll add myself as a watcher and drop a star on you for innovation :-)
from hid4java.
Good!
your are right about the JVM ref in the .classpath file, I may have reconsider this as especially with just JNA in the classpath the value of the .classpath file is minimal. I was going by the experience with some day job related projects with thousands of classes where setting up Eclipse is a chore and why I them around in the version control.
Thanks for the star and let me return the courtesy and good luck with all your projects too,
from hid4java.
I really strongly urge you to mavenize it. Newbies will have an easier time importing it.
from hid4java.
Feel free to contribute a 'pom', I am not up to speed with maven...
from hid4java.
Related Issues (20)
- setAutoDataRead(true) - nothing happens, program waits forever HOT 2
- Add module name HOT 3
- I am not scanning my device using UsbHidEnumerationExample. Do I need to do anything to set the MAC? HOT 6
- Event hidDataReceived not working. HOT 2
- Option to open device in non-exclusive mode HOT 1
- When will 0.8.0 be released as example code doesn't compile when tried with latest published jar? HOT 7
- 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`
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.