Results 1 to 6 of 6
  1. #1
    sysout is offline Member
    Join Date
    Aug 2009
    Posts
    66
    Rep Power
    0

    Default Java SMS timeout using this script

    I've downloaded sms script from this website :
    Click Here

    And I added this script for the main :
    Java Code:
    /*
     * To change this template, choose Tools | Templates
     * and open the template in the editor.
     */
    
    package sms;
    
    /**
     *
     * @author admin
     */
    public class RunThis {
    
        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            // TODO code application logic here
            SMSClient a = new SMSClient(0);
            a.sendMessage("+628999037789", "tes");
        }
    
    }
    but it return like this :
    Fri Oct 23 06:37:15 ICT 2009:sms.Sender:*** time out at step 2***
    BUILD SUCCESSFUL (total time: 3 seconds)
    I don't understand how to use this

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    5

    Default

    Edit: oops, nevermind.
    My Hobby Project: LegacyClone

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,352
    Blog Entries
    7
    Rep Power
    20

    Default

    Are you connected to an SMSC (an SMS Center)? Ohterwise, how is your client supposed to know where to send its message? I bet that package comes with documentation; read it.

    kind regards,

    Jos

  4. #4
    sysout is offline Member
    Join Date
    Aug 2009
    Posts
    66
    Rep Power
    0

    Default

    there's no documentation for this.. :(
    just check this link :
    How to Send SMS using Java Program (full code sample included)

  5. #5
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Read the comments posted on that page. You also did not see (or simply ignored) Jos' question above.

  6. #6
    sysout is offline Member
    Join Date
    Aug 2009
    Posts
    66
    Rep Power
    0

    Default

    Please check your modem. Search the internet for AT commands that are specific to the modem you are using.
    Then connect the modem(with SIM) to your serial port.
    Start the Hyperterminal and then give the AT commands to send SMS.
    It must work from the hyperterminal.
    If it doesn't, then there is some problem with the modem and the SIM.
    If sending SMS using hyperterminal works, then use this program.
    It will work.
    I used sms lib for my modem (handphone), it works fine, but using this script doesn't work at all.
    SMSlib is too big for the size.,and this script is more simple.

Similar Threads

  1. Help java script error
    By ellybeth in forum New To Java
    Replies: 7
    Last Post: 08-20-2009, 05:23 AM
  2. java script
    By satti in forum Web Frameworks
    Replies: 0
    Last Post: 06-09-2009, 08:53 AM
  3. run perl script from java
    By maheshmhs in forum New To Java
    Replies: 0
    Last Post: 12-19-2008, 12:40 PM
  4. Need Java Script Installed
    By billaaa777 in forum Jobs Offered
    Replies: 0
    Last Post: 09-04-2008, 04:37 PM
  5. The lasted java script
    By silvia in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 05:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •