What are Java's native ways of communicating with devices or ports such as LPT1, COM1, USB directly?
From stackoverflow
-
native means unportable, so you have to mess with JNI or JNA if and only if the following libraries doesn't works for you:
Joset : any other ways of doing that by not using any extended libraries?Joonas Pulakka : No, it's simply not possible without native libraries. -
RXTX is good one for COM and LPT ports. USB is extremely difficult; probably the easiest way is to write your own C+JNI wrapper for native drivers of the device.
-
Unfortunately, in Javax.comm the sun version 2.0 and the latest RXTX versions -- LPT parallel ports are not implemented properly under Win32. Output seems to work okay, but if you try to read from the port it's not possible.
0 comments:
Post a Comment