Anyone?? please...??Thanks.

On Jul 11, 11:21 am, RaynovC <[email protected]> wrote:
> Dear all,
> I don't know why I can't run all of the java file included in the
> example. I've found error in every file!
>
> First is SendMessage.java. The error is:
> Example: Send message from a serial gsm modem.
> SMSLib: A Java API library for sending and receiving SMS via a GSM
> modem or other supported gateways.
> This software is distributed under the terms of the Apache v2.0
> License.
> Web Site:http://smslib.org
> Version: 3.4.6
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
> log4j/Logger
>         at org.smslib.helper.Logger.<init>(Logger.java:34)
>         at org.smslib.Service.<init>(Service.java:104)
>         at main.doIt(main.java:26)
>         at main.main(main.java:76)
> Line 26 is srv = new Service(); and line 76 is app.doIt();
>
> Second is ReadMessage.java. The error is:
> Example: Read messages from a serial gsm modem.
> SMSLib: A Java API library for sending and receiving SMS via a GSM
> modem or other supported gateways.
> This software is distributed under the terms of the Apache v2.0
> License.
> Web Site:http://smslib.org
> Version: 3.4.6
> java.lang.NullPointerException
>         at receive.doIt(receive.java:136)
>         at receive.main(receive.java:182)
> Line 136 is this.srv.stopService(); and line 182 is app.doIt();
>
> Last, CommTest.java. The error is:
> Searching for devices...
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at CommTest.getCleanPortIdentifiers(CommTest.java:26)
>         at CommTest.main(CommTest.java:32)
> Caused by: java.lang.RuntimeException: CommPortIdentifier class not
> found
>         at
> org.smslib.helper.CommPortIdentifier.<clinit>(CommPortIdentifier.java:
> 76)
>         ... 2 more
>
> Line 26 is return CommPortIdentifier.getPortIdentifiers(); and 32 is
> portList = getCleanPortIdentifiers();
>
> FYI I think I've installed all of the components right. I've placed 3
> javacomm files in the right place, and also RxTx files. I don't know
> what I'm doing wrong here.
> It's probably too much question from me. I hope anyone can help and I
> really appreciate it.
> Many thanks before.

-- 
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