Am using RxTx with SMSLib v 3.4.4 on OpenSUSE 10.3 .

I have added log4jlogger-2.0.jar to $JAVA_HOME/jre/lib/ext,
nonetheless, the error persists.

Regards,
Simon.
On Dec 8, 7:28 pm, Simon <[email protected]> wrote:
> Hello,
>
> I have run the SendMessage.java , however, I get problems at runtime.
> Here is the error. How can I solve this?
>
> ----------------------------------------------------------------------------------------
> 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.4
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
> log4j/Level
>         at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
>         at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
>         at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:
> 111)
>         at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:269)
>         at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
>         at org.smslib.helper.Logger.<init>(Logger.java:34)
>         at org.smslib.Service.<init>(Service.java:100)
>         at examples.modem.SendMessage.doIt(SendMessage.java:27)
>         at examples.modem.SendMessage.main(SendMessage.java:77)
>
> ---------------------------------------------------------------------------------------------------
>
> Regards,
> Simon.

--

You received this message because you are subscribed to the Google Groups 
"SMSLib for Java 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