Hi,

Thanks for the work you guys have done on this project.

I'm trying to run the SendMessages example class with the following
modifications:
SerialModemGateway gateway = new SerialModemGateway("modem.com8",
"COM8", 57600, "Samsung", "SGH-a877");
and
msg = new OutboundMessage("+9252091236", "Hello from SMSLib!");

I'm running into this unhandled exception:
Exception in thread "Thread-3" java.lang.ExceptionInInitializerError
        at
org.smslib.modem.SerialModemDriver.connectPort(SerialModemDriver.java:
68)
        at org.smslib.modem.AModemDriver.connect(AModemDriver.java:113)
        at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java:187)
        at org.smslib.Service$1Starter.run(Service.java:321)
Caused by: java.lang.RuntimeException: CommPortIdentifier class not
found
        at
org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:
78)
        ... 4 more

That references this code in the class
org.smslib.helper.CommPortIdentifier:
                try
                {
                        classCommPortIdentifier =
Class.forName("javax.comm.CommPortIdentifier");
                }
                catch (ClassNotFoundException e1)
                {
                        try
                        {
                                classCommPortIdentifier =
Class.forName("gnu.io.CommPortIdentifier");
                        }
                        catch (ClassNotFoundException e2)
                        {
                                throw new RuntimeException("CommPortIdentifier 
class not found");
                        }
                }

I'm trying to use a Samsung SGH-a877 with connection speed 57600.

I'd appreciate any help you can offer.

Thanks,
David

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to