Hi, As the error printout says:
> Caused by: java.lang.RuntimeException: CommPortIdentifier class not found SMSLib tries to load this class dynamically during runtime and it live in comm.jar, that needs to be in the classpath / Hakan On 21 Feb, 18:45, btd1 <[email protected]> wrote: > Hi Everyone, > > I loved using SMSLib for the last few months- got to say its great! > > On to my problem: > > I messed around using the ReadMessages example that comes with the > download. The only change I made to that code was an insert into a > database when a message is recieved. I created a project in Netbeans, > added the appropriate jars etc and the Project builds and runs fine. > > My problem occurs when I try to execute the Jar file that Netbeans > creates outside of the Netbeans IDE. Executing the jar with a batch > file or just typing [ java -jar "ReadMsg.jar" ] gives me this > error: > > ________________________________________________________________________________ > Exception in tread "Thread-1" java.lang.ExceptionInInitializerError > at org.smslib.modem.SerialModemDriver.connectPort > (SerialModemDrive.java:67) > at org.smslib.modem.AModemDriver.connect(AModemDriver.java:110) > at org.smslib.modem.ModemGateway.startGateway(ModemGateway.java: > 126) > at org.smslib.Service$1Srarter.run(Service.java:222) > Caused by: java.lang.RuntimeException: CommPortIdentifier class not > found > at org.smslib.helper.CommPortIdentifier.<clinit> > (CommPortIdentifer.java:75) > . . . 4 more > ________________________________________________________________________________ > > I dont get any error in Netbeans, not even warnings. > > Any ideas what is going on? > > Thanks in advance, > btd1. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
