Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : Ajay

Comment Added at : 2010-09-04 03:01:24

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
To RUN this code, follow below steps

1 Add main() method in code.

public static void main(String args[]) {
SMSClient a = new SMSClient(1); //
// arg 1 - send number
// arg 2 - Message
a.sendMessage("+91111100", "11111");
}

2 - Download [from net] javax.Comm jar (javax.comm.NoSuchPortException )
comm.jar
win32com.dll
javax.comm.properties
Make sure all 3 file should be in same folder

3 - Configure Message center
Message Center number is available on mobile, check following options
Goto Messaging > Options > Settings > Text message > Service centre
Update the number on class.Sender.csca [variable]


View Tutorial



Ask a Question

Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. please give me more information
View Tutorial          By: nandhini at 2012-09-22 03:49:11

2. Thanks!! This example was very helpful for me...
View Tutorial          By: Jonathas at 2010-03-11 07:47:51

3. i apprciate your work,plz keep on working harder a
View Tutorial          By: Raymond B. Benedicto at 2013-01-12 07:08:59

4. The iterator returned by iterator() does not point
View Tutorial          By: Jeffrey at 2009-10-06 21:45:41

5. i want very simple & easy notes on php which u
View Tutorial          By: deepa at 2011-07-12 09:04:30

6. Hi Ramalak, I am suffering with the same error as
View Tutorial          By: Divya at 2008-11-06 22:46:12

7. Well, I am fortunate to run CentOS 5 - everywhere
View Tutorial          By: Goozy at 2009-07-25 11:18:45

8. I have mobile connecting to pc 3 options come com
View Tutorial          By: Sumit Sharma at 2012-04-13 16:32:15

9. please give very easy program....this program is d
View Tutorial          By: rajesh at 2010-01-24 08:08:38

10. This tutorial is very good. Actually I have been s
View Tutorial          By: farhaan at 2008-03-20 15:22:13