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. hi, ashray p shetty
can you please tell me

View Tutorial          By: amrish at 2010-12-12 07:30:49

2. nice
View Tutorial          By: srfds at 2012-05-28 09:25:15

3. my query is like this: " accept a string, cou
View Tutorial          By: samtopper at 2014-07-31 17:40:25

4. JSF's Advantage(3rd point):
"...events

View Tutorial          By: Amit at 2011-07-01 09:38:12

5. Hi.
How we can create list with menuitem in

View Tutorial          By: omid at 2008-09-08 02:09:50

6. i need help in writing code for multiplication pro
View Tutorial          By: viswanath at 2013-02-23 14:13:40

7. can you send me comm.jar required for this project
View Tutorial          By: rahul at 2012-10-20 12:21:42

8. I set my eclipse as describe above.
I also

View Tutorial          By: Anonymous at 2012-03-25 02:12:52

9. simple but very usefull example, thanks a lot
View Tutorial          By: yiyo at 2011-12-01 15:18:43

10. sir please check the program in for loop
View Tutorial          By: vc ramreddy at 2009-09-28 23:35:10