This discussion is archived
0 Replies Latest reply: Sep 6, 2009 2:43 AM by 843851 RSS

Problem with javax.comm

843851 Newbie
Currently Being Moderated
hi,
while trying to access the list of COMM ports in my system using eclipse, i got the following error

*//program is*

import java.util.Enumeration;
import javax.comm.CommPortIdentifier;
*public class JSender {*
*     public static void main(String[] args) {*
*          Enumeration pList = CommPortIdentifier.getPortIdentifiers();*
*          while (pList.hasMoreElements())*
*          {*
*               CommPortIdentifier cpi = (CommPortIdentifier)pList.nextElement();*
*               System.out.println("Port " + cpi.getName());*
*          }*
*     }*
*}*

The Error is_

Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: com.sun.comm.SolarisDriver.readRegistrySerial(Ljava/util/Vector;Ljava/lang/String;)I while loading driver com.sun.comm.SolarisDriver

can any one plz give the solution to access the COMM ports...
thx in advance...