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]
# 1

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.

EDemch at 2007-7-1 14:14:52 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Can you please elaborate the process? What enumeration are you talking about? Even i am getting the same problem.I have used apdutool -s COM1 Helloworld.scrupto COM4
roopary at 2007-7-1 14:14:52 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3

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

noooor at 2007-7-1 14:14:52 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
hi,I am worling on it too so is it possible to connect two ports on the same PC? If u got the answer pls let me know.
givson at 2007-7-1 14:14:52 > top of Java-index,Java HotSpot Virtual Machine,Specifications...