Parallel Port Issues
I'm in the process of adding port selection & configuration options to a program from a few years back, and have run into a few odd bugs that I can't piece together. Here's the long and short of it.
The troubles begin with list population. I'm using javax.comm combined with the following line...
Enumeration pList = CommPortIdentifier.getPortIdentifiers();
... to obtain a list of the available serial and parallel ports. This gives me COM1, LPT1, and LPT2. The issue there is that I don't HAVE two parallel ports -- both a glance through Windows' Device Manager and just looking at the back of the computer confirm it. Strangely enough, though, not only does this phantom port appear in the enumeration, but attempting to open it is giving me not a No Such Port Exception, but rather a Port in Use Exception. And trying to close the port results in a Null Pointer Exception. So to recap, I've found ports which aren't there, but are being used by something and can't be freed up.
It's a bit confounding, really.
Oh, and while LPT1 has connected using the same code, the function ParallelPort.setMode(int mode) isn't working properly; it will take LPT_MODE_SPP, but none of its brethren. No ECp, no EPP, no Nibble, no PS2.
Any chance anyone has seen these before? I'm aware that using a Windows machine and the no-longer-supported javax.comm is not recommended by Sun; would getting RXTX abe t all likely to solve these problems?
Thanks much.

