0

I am using my 3G modem port in my SMSlib but my code is not detecting the port and is giving this error

try {   
    CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier("COM1"); 
} catch(Exception e) {
    e.printStackTrace();
}

My modem port is COM1, but I haven't placed all "comm.jar" and "javax.comm.properties" and "win32com.dll" in respective directories

Charlie
  • 978
  • 1
  • 7
  • 27
Mujahid
  • 49
  • 4

1 Answers1

0

I have 2 JRE so i have copied my comm.jar .javax.comm.properties files in wrong jre/lib location. But after copying files in both JRE's lib my problem has solved.

Mujahid
  • 49
  • 4