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



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 pionter is used to help compiler to understan
View Tutorial          By: RUB NAWAZ at 2008-10-31 11:38:09

2. Can you please give the driver class for this code
View Tutorial          By: ani at 2012-09-20 17:23:13

3. i see that lots of people get this exception : jav
View Tutorial          By: oded at 2008-09-28 03:33:33

4. how about if you attach microsoft word documents?p
View Tutorial          By: gian at 2012-01-06 03:11:44

5. A very nice example for abstract classes, simple b
View Tutorial          By: Rahul at 2010-06-16 20:45:24

6. Did you happen to import any certificates to execu
View Tutorial          By: Shashank at 2013-03-15 12:17:50

7. Please help me send sms. I did everything , But no
View Tutorial          By: Prabhash V S at 2009-06-03 06:40:55

8. It worked. Thank U!
View Tutorial          By: Abhijit Kurane at 2010-12-27 11:01:48

9. Hi,
Downloaded all the five files but there

View Tutorial          By: Ratan at 2014-09-25 11:38:49

10. Can u please help me. I run the SerialConnection p
View Tutorial          By: Praseetha.K at 2009-01-23 09:34:35