Hi,

Check your JavaComm installation.
You must be missing or misplaced a javacomm file - see here for
instructions: http://smslib.org/doc/installation/

On Feb 21, 8:47 pm, btd1 <[email protected]> wrote:
> Hi Hakan,
>
> Thanks, I was short the comm.jar file (rookie mistake) and now it runs
> (for a while).
> Its output:
> ______________________________________________________
>
> >>> Gateway Status change for modem.com9, OLD: STOPPED -> NEW: RESTART
>
> org.smslib.GatewayException: Comm library exception:
> java.lang.reflect.Invocatio
> nTargetException
>         at org.smslib.modem.SerialModemDriver.connectPort
> (SerialModemDriver.java
> :92)
>         at org.smslib.modem.AModemDriver.connect(AModemDriver.java:
> 110)
>         at org.smslib.modem.ModemGateway.startGateway
> (ModemGateway.java:126)
>         at org.smslib.Service$1Starter.run(Service.java:222)
> ____________________________________________________
>
> So now at least it runs but I then I get a Comm library exception.
>
> Thanks again,
> you're really helping me out.
>
> btd1.
>
> On Feb 21, 6:34 pm, digiloo <[email protected]> wrote:
>
> > 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.- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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