请各位大侠帮忙!!!我用这个简单的检测串口程序检测串口为什么检测不到任何串口啊,,
实际上是有串口的
package b_comm_number;import   java.util.Enumeration; import   javax.comm.CommPortIdentifier; public   class   c_comm_number   { public   static   void   main(String[]   args)   { 
Enumeration en=CommPortIdentifier.getPortIdentifiers();
CommPortIdentifier port;
while(en.hasMoreElements())
{
port=(CommPortIdentifier) en.nextElement();

if(port.getPortType()==CommPortIdentifier.PORT_SERIAL)
{
System.out.println(port.getName());

}
}
}
}