Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

problem with javax.comm under winXP

843807Oct 19 2003 — edited Mar 5 2008
Hi,

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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2008
Added on Oct 19 2003
32 comments
395 views