How to access USB ports in java -
i'm trying write java application accesses usb ports read , write device connected through usb. problem face don't know use in java such thing. searched online , found called jusb posts seem old.
currently i'm using rxtx libraries run sync error. when use c# equivalent requires far less code , don't face of same sync error.
my question is, is there built latest version of jre can use access usb ports (that easy equivalent c# code)?
there nothing equivalent c#'s usb support in java. both jusb , java-usb severely out-of-date , unusable serious application development.
if want implement cross-platform usb application, best bet write abstract jni interface talks linux, mac , windows native libraries you'll have write yourself. i'd @ libusb handle mac , linux. windows, you've seen, pretty straightforward. came off year-long project did this, , unfortunately serious cross-platform solution. if don't have implement on windows , needs limited, may 1 of older java libs (jusb or java-usb). needs deploy on win32/win64 need native component.
Comments
Post a Comment