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 shrikarwa1@gmail.com
OR
shri_karwa@yahoomail.co.in


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. This example is very useful to me,but i wnat more
View Tutorial          By: vaishali at 2010-12-06 08:20:18

2. I got error during using above code if There is ne
View Tutorial          By: Sunil at 2009-12-28 05:22:45

3. i am getting the erorr such as:::::
Error l

View Tutorial          By: supriyo at 2011-02-21 13:17:00

4. well example, but i have to send the received list
View Tutorial          By: amit kumar at 2011-02-21 00:43:15

5. nice one !!! just keep it .. i have learn a lot..
View Tutorial          By: dondon at 2011-07-27 04:43:40

6. Thank you! :) But I have a question, why is that t
View Tutorial          By: choco at 2010-01-03 02:16:18

7. Hi ,

Since both the methods in the

View Tutorial          By: Chintan at 2013-11-21 03:42:32

8. Hi,
I want to read the barcode and print it

View Tutorial          By: Santu at 2013-03-12 18:15:18

9. i am using tata photon+ modem ,so which csca numb
View Tutorial          By: ganesh at 2011-01-30 12:11:01

10. You have mentioned that
to use this program

View Tutorial          By: Naasik at 2012-08-05 00:15:57