heyy i got the same problem. and i also copied the 3 java comm files in the jre directory. but still theres d same problem. im getting d following errors:-
Error loading win32com: java.lang.UnsatisfiedLinkError: no win32com in java.library.path javax.comm.NoSuchPortException at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105) at SerialConnection.openConnection(SerialConnection.java:70) at Sender.send(Sender.java:44) at SMSClient.run(SMSClient.java:40) at java.lang.Thread.run(Thread.java:722) SerialConnectionException at SerialConnection.openConnection(SerialConnection.java:75) at Sender.send(Sender.java:44) at SMSClient.run(SMSClient.java:40) at java.lang.Thread.run(Thread.java:722) please help On Saturday, 17 July 2010 17:40:51 UTC+5:30, RaynovC wrote: > > yeah I got the same problem but not anymore. > It's the javacomm instalation. > Remember if you have separate JRE directory you have to copy 3 > javacomm files there too (this is where I've gone wrong before). > > On Jul 15, 10:33 am, dhousman <[email protected]> wrote: > > 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 Discussion Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msg/smslib/-/9zPhB7yVo8EJ. For more options, visit https://groups.google.com/groups/opt_out.
