problem with javax.comm under winXP
843807Oct 19 2003 — edited Mar 5 2008Hi,
I'm trying to access serial ports under winXP using the javax.comm API. I've installed the files where the readme tells me to, i.e.
win32comm.dll in <JDK>\bin
comm.jar in <JDK>\lib
javax.comm.properties in <JDK>\lib
and everything compiles without any problems.
However, when I try to run a test app (my own, or the BlackBox sample) that accesses a serial port (or parallel port for that matter), I have problems. Issuing CommPortIdentifier.getPortIdentifiers() returns the indicated Enumeration object, but with no elements - it is not null, it just has no elements.
This happens on both my XP pro machine at work, and my XP pro machine at home, so it appears to be specific to XP rather than to a particular computer.
Any help or suggestions would be much appreciated!