Have you tried to run the example from DOS?

Steps to do this:

1) Go to smslib top distro directory and run "ant compile-smslib"
2) Go to "dist/classes" and run "java examples.modem.ReadMessages"

On Sep 17, 3:44 am, desgraci <[email protected]> wrote:
> Ok, i make a question, but no answer and according to rule
> 3) Do not hijack discussions. If you have a new issue, start a new
> thread. Do not post or answer to irrelevant threads.
> i start this one.
>
> The thing is i just installed for windows (even if i dont know if this
> going to be a dead-end) the guide i used is:
>
> http://code.google.com/p/smslib/wiki/Installation
>
> i runned the black box in shell using the javaBlackBox, works fine.
>
> The questions comes when i try to use the ReadMessage with NetBeans, i
> searched and looks like this got to be with the installation of the 3
> files of java comm, but i dont seem to find a specific guide to make
> it with NB, and when i try to run i get this beatiful message:
>
> run:
> 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.3
> java.lang.NullPointerException
>         at examples.modem.ReadMessages.doIt(ReadMessages.java:137)
>         at examples.modem.ReadMessages.main(ReadMessages.java:183)
> BUILD SUCCESSFUL (total time: 0 seconds)
>
> BTW, im using windows XP, im using the installation of NB+JDK
> jdk-6u16-nb-6_7_1-windows-ml.exe
>
> I know 99.99% is cause the bad installation of java comm, but to bwe
> honest if i can run BlackBox, and i have followed the instructions
> from the wiki page, there shouldnt be a reason for it dont running in
> NB, so wheres a solution, i have been doing googe Engi. for hours at
> least wheres the guide to make it work in NB... :d thanks
--~--~---------~--~----~------------~-------~--~----~
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