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



Comment Added by : Amit Kumar Singh

Comment Added at : 2011-10-10 04:44:58

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi fiends,
your given approch is correct . but did not find how to invock the sendSMS menthod.


SMSClient sc = new SMSClient(1);
sc.sendMessage("+91 + mycell number ","Hello");
}
but this cord is not working .
showing the some error like

javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
at com.tester.sms.SerialConnection.openConnection(SerialConnection.java:72)
at com.tester.sms.Sender.send(Sender.java:47)
at com.tester.sms.SMSClient.run(SMSClient.java:70)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.tester.sms.SerialConnection.openConnection(SerialConnection.java:89)
at com.tester.sms.Sender.send(Sender.java:47)
at com.tester.sms.SMSClient.run(SMSClient.java:70)
at java.lang.Thread.run(Unknown Source)

plz help me to solve this problem .
and give me the client code from where we invock the sendSms method.

plz give me reply on [email protected]


View Tutorial



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. very nice i now understand what the allocated part
View Tutorial          By: Digistr - digistrscape (youtube.com/digistrscape) at 2010-01-30 01:17:19

2. Hay can you send me complete code to make connecti
View Tutorial          By: 9COOL at 2010-02-22 08:10:47

3. thankyou Mr Ramlak for your help but please can yo
View Tutorial          By: yash at 2008-05-12 16:46:18

4. Simply explained theory.......
Thanx......!

View Tutorial          By: Priya at 2013-03-03 14:42:05

5. very good
View Tutorial          By: amit at 2009-10-24 01:55:26

6. ..i have a question. is it possible to override a
View Tutorial          By: rein at 2010-08-25 07:07:15

7. programming is really exciting specially with c++^
View Tutorial          By: Jully at 2010-07-28 18:42:23

8. thanks. it helped a lot!
View Tutorial          By: lateforbus at 2013-04-25 03:35:24

9. thank u.....
View Tutorial          By: DiptaRanjan at 2013-02-02 14:56:45

10. how doeas peek work in a c++ program
View Tutorial          By: odwa at 2008-02-29 02:44:19