Java comm api returned NoSuchPortException
I have installed java com api package, run BlackBox or serialDemo have no problems. However, when I use another program, apdutool, to direct output to com port where a card reader is attached, it return javax.comm returned NoSuchPortException. On the command line, I have tried -s0 up to -s4, or -s COM1 to COM4, still the same. Inside the example source, it used enumeration to check the port, so I don't know how should I pass that argument for the parameter. Well, I get stuck for a few months. Can someone help? please.
[545 byte] By [
duncanKam] at [2007-9-26 5:49:06]

The first thing you might look at - how you specified the port name. The trick is that you MUSTN'T use a colon ":" symbol in a port name as it is typical for most OS. You should specify "COM1", '"COM2", but not "COM1:" or "COM2:"
after all, you should get the enumaration with ports names, and just print them out, using "getName" method - so you will be able to spell them correctly.
Hi
I have tried to run the serialDemo example using a cable between com1 and
com2 in the same PC and it returns "Error opening port null "
what do I have to do to skip this error ?
Is it allowed to connect the two ports in the same PC or not ?\
HELP
nour