Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

SMSLib Problems

  • 10-06-2008 08:55AM
    #1
    Registered Users, Registered Users 2 Posts: 165 ✭✭


    Hey guys,

    I'm having trouble using SMSLib.

    I've been told that its the best library out there to help me send/receive messages from my phone over a serial connection. Only problem is I cant seem to use it.

    In my code I have 'import org.smslib.something' but in Netbeans 6.1 (XP) it says 'package does not exist'. So I added the library to Netbeans but it still didnt work. I then went here and followed the installation guide. I downloaded SUN Java Comm v2 and followed the instructions.

    There is then talk of ANT and log4j and I get completely lost!

    Can anyone help?
    Thanks in advance.


Comments

  • Registered Users, Registered Users 2 Posts: 165 ✭✭ViperMAN


    Please guys- has anyone got any info at all? Surely theres bound to be someone out there that has or is using SMSLib?


  • Closed Accounts Posts: 1,444 ✭✭✭Cantab.


    Could you copy and paste some output from the java compiler?

    The error messages will kick off ideas I'm sure.


  • Registered Users, Registered Users 2 Posts: 165 ✭✭ViperMAN


    Thanks for the reply cantab,
    Unfortuently I am away form my Dev PC until later this evening- I'll stick up the error message then...cheers!


  • Registered Users, Registered Users 2 Posts: 165 ✭✭ViperMAN


    Ok- the error message is as follows:

    init:
    deps-jar:
    Compiling 1 source file to C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\build\classes
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:6: package org.smslib does not exist
    import org.smslib.IOutboundMessageNotification;
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:7: package org.smslib does not exist
    import org.smslib.Library;
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:8: package org.smslib does not exist
    import org.smslib.OutboundMessage;
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:9: package org.smslib does not exist
    import org.smslib.Service;
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:10: package org.smslib.modem does not exist
    import org.smslib.modem.SerialModemGateway;
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:72: cannot find symbol
    symbol : class IOutboundMessageNotification
    location: class SendMessage
    public class OutboundNotification implements IOutboundMessageNotification
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:74: cannot find symbol
    symbol : class OutboundMessage
    location: class SendMessage.OutboundNotification
    public void process(String gatewayId, OutboundMessage msg)
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:19: cannot find symbol
    symbol : class Service
    location: class SendMessage
    Service srv;
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:20: cannot find symbol
    symbol : class OutboundMessage
    location: class SendMessage
    OutboundMessage msg;
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:25: cannot find symbol
    symbol : variable Library
    location: class SendMessage
    System.out.println(Library.getLibraryDescription());
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:26: cannot find symbol
    symbol : variable Library
    location: class SendMessage
    System.out.println("Version: " + Library.getLibraryVersion());
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:28: cannot find symbol
    symbol : class Service
    location: class SendMessage
    srv = new Service();
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:29: cannot find symbol
    symbol : class SerialModemGateway
    location: class SendMessage
    SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM1", 19200, "Nokia", "6310i");
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:29: cannot find symbol
    symbol : class SerialModemGateway
    location: class SendMessage
    SerialModemGateway gateway = new SerialModemGateway("modem.com1", "COM1", 19200, "Nokia", "6310i");
    C:\Documents and Settings\Brian\My Documents\NetBeansProjects\SMS\src\SendMessage.java:48: cannot find symbol
    symbol : class OutboundMessage
    location: class SendMessage
    msg = new OutboundMessage("+[theNumIsHere]", "Hello World!");
    15 errors
    BUILD FAILED (total time: 2 seconds)


  • Closed Accounts Posts: 1,444 ✭✭✭Cantab.


    "package org.smslib does not exist"

    Check it's on your path.

    Look at your environment variables.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 165 ✭✭ViperMAN


    Problem solved- the package was in the path but I needed to build it first! My bad! Thanks for the help anyway!


  • Closed Accounts Posts: 1 vikaspatidar


    Hi i am new to SMSLib can you send me a procedure for setting up and compile using ANT with example my email is "vikas.patidar@hotmail.com"



    Thank You in Advance.........


Advertisement