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



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. This is first time i am using this net
View Tutorial          By: selvam at 2008-08-19 00:04:44

2. Hi Maybelline, This is the <a href="http:/
View Tutorial          By: Daniel Malcolm at 2008-08-21 06:57:31

3. Good stuff and good example to support it.
View Tutorial          By: tabrez at 2012-04-10 01:44:48

4. @Adam:
CompareTo returns the difference of

View Tutorial          By: Azher at 2010-01-29 12:23:39

5. write a program to prepare the student marks for s
View Tutorial          By: belgreen frodo at 2015-03-31 05:41:05

6. Thank you so much. You made my day. God bless you
View Tutorial          By: Gautam at 2012-09-18 16:24:19

7. thank you for code
View Tutorial          By: turki at 2013-12-11 13:23:44

8. Hi, I need the complete working code for sending a
View Tutorial          By: prakash at 2010-05-24 09:14:59

9. Hi,,
I dont have a problem Insert, Update a

View Tutorial          By: Yavuz at 2010-09-01 14:15:02

10. Good example. However as someone said, it would be
View Tutorial          By: Neo Cambell at 2010-03-10 11:02:06