How to talk with the serial port of PC on W2K,I use the javax.comm, but can't get the port.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   morgan_mei
Posted On:   Monday, December 24, 2001 07:32 PM

I downloaded the java communication API from sun.java.com, and I try the sample code SampleRead.java, the source is portList = CommPortIdentifier.getPortIdentifiers()
but the return portlist is null, please tell me why? thanks a lot!

Re: How to talk with the serial port of PC on W2K,I use the javax.comm, but can't get the port.

Posted By:   Ernie_Ratcliff  
Posted On:   Tuesday, January 29, 2002 05:39 AM

I had this same issue. My problem was, I was running my program from MS VJ++. To solve the problem I ran the program from the command line and it worked fine. Explicitly telling it which version to use! I hope this helps
About | Sitemap | Contact