This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
id_port = CommPortIdentifier.getPortIdentifier("COM1"); // OR ALSO COM2
int k = 6; // row useful only to set a breakpoint for debug
If I run the project under Netbeans (v. 6.9.1) the COM1 is not found.
Instead, if I build the project and run it from command line the COM1 is regularly found.
How I can avoid this strange behaviour of Netbeans (It seems as Netbeans hides all ports on my computer)