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



Comment Added by : shrinivas

Comment Added at : 2009-03-07 23:16:51

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
at
OK
at+cmff=1
OK
at+cmgf="+919422099997"
OK
at+cmgs="+919422190077"
>How are you?->
+CMGS: 185

OK

i have tried above code using hyper terminal and a message from my mobile is going to no. +919422190077

that means my connection with the computer is perfect.

but when i am trying to send msg through code it is giving me error

C:\>cd C:\j2sdk1.4.2\bin

C:\j2sdk1.4.2\bin>java shri

Caught java.lang.ClassNotFoundException: com.WinDriver while loading driver com.
WinDriver
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.ja
va:105)
at SerialConnection.openConnection(SerialConnection.java:70)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:536)
java.lang.NullPointerException
at SerialConnection.openConnection(SerialConnection.java:87)
at Sender.send(Sender.java:44)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Thread.java:536)

if anyone can know where i am going wrong.
please reply me at [email protected]
OR
[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. Thanks for this article.
View Tutorial          By: Arindam Dey at 2011-06-16 05:23:17

2. Thank you Sir.
View Tutorial          By: Dinesh at 2015-08-25 10:41:30

3. I've tried this code but i am gettting error at li
View Tutorial          By: Iqra at 2012-12-13 10:43:12

4. very good for programing
View Tutorial          By: kiran at 2007-12-06 00:39:47

5. Explanation was good and easily comprehendable.
View Tutorial          By: Moin Adil at 2009-06-17 04:18:56

6. thanks...please give some more examples
View Tutorial          By: Iqra at 2012-06-24 18:57:51

7. can u pls tell me how to retrive data from databas
View Tutorial          By: yogesg desai at 2010-05-27 08:26:24

8. what is the data type of the variable direction di
View Tutorial          By: [email protected] at 2009-12-25 03:07:46

9. helpfull !!!!
View Tutorial          By: Anonymous at 2009-05-12 03:48:15

10. thanks alot steven for the code. i'm try to automa
View Tutorial          By: Roger at 2011-05-17 17:33:07