Hi,

I think this is marked pretty clear in the docs:

"If you have a separate JRE directory, do the same copies for the JREDIR
directory!"

Anyway, have fun :)

On 11 July 2010 17:36, RaynovC <[email protected]> wrote:

> Hey I think I found the root of my problem.
> I don't know if this problem is already solved many times int his
> group and I'm reall sorry if I wasn't look for this kinda problem
> further enough in this group (which is this post will be a post with
> the same topic as already posted before).
> Anyway, in the web documentation (installation instruction), 3
> javacomm files should be copied in JDK-DIR bla3x... I thought JDK-DIR
> here means "program files/java/jdk-version" folder. But I just realize
> that those javacomm files should also be copied to "jre-version"
> folder too.
> Now that I've fix the problem, I hope you guys with the same problem
> can read and understand this. Many thanks.
>
> On Jul 11, 5:46 pm, RaynovC <[email protected]> wrote:
> > So i've managed to view the log. here:
> >
> > This one is for SendMessage.java. (I rename it to "main.java")
> > Category:       smslib
> > Message:                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
> > Location:       org.smslib.helper.Logger.logInfo(Logger.java:50)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Version: 3.4.6
> > Location:       org.smslib.helper.Logger.logInfo(Logger.java:50)
> > Thrown:
> >
> > Category:       smslib
> > Message:                JRE Version: 1.6.0_03
> > Location:       org.smslib.helper.Logger.logInfo(Logger.java:50)
> > Thrown:
> >
> > Category:       smslib
> > Message:                JRE Impl Version: 1.6.0_03-b05
> > Location:       org.smslib.helper.Logger.logInfo(Logger.java:50)
> > Thrown:
> >
> > Category:       smslib
> > Message:                O/S: Windows Vista / x86 / 6.1
> > Location:       org.smslib.helper.Logger.logInfo(Logger.java:50)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Initialized.
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Initialized.
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                DelayQueueManager running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                NotifyQueueManager running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Initialized.
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                GTW: huaweimodem: Starting gateway, using Huawei
> E160 AT
> > Handler.
> > Location:       org.smslib.helper.Logger.logInfo(Logger.java:50)
> > Thrown:
> >
> > Category:       smslib
> > Message:                GTW: huaweimodem: Opening: COM4 @115200
> > Location:       org.smslib.helper.Logger.logInfo(Logger.java:50)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > Category:       smslib
> > Message:                Running...
> > Location:       org.smslib.helper.Logger.logDebug(Logger.java:64)
> > Thrown:
> >
> > I've made some changes for example now I used log4j-1.2.16.jar.
> > I just read that RxTx and javacomm can't work together so I removed
> > RxTx (both jar and serial dll)
> > I don't know if this information is necessary but I wish someone can
> > help me.
> >
> > On Jul 11, 4:17 pm, RaynovC <[email protected]> wrote:
> >
> >
> >
> > > 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]<smslib%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/smslib?hl=en.
>
>

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