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:29:01

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 tried the above code in hyper terminal and i m being able to send message to no."+919422190077"
that means mobile connection with computer is perfect

but when i am trying to send it using code i am getting following 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)

so anyone can tell me where i am going wrong,
thanking you

you can mail me at [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. How would you use a switch statement to determine
View Tutorial          By: Shivak at 2013-09-27 01:48:41

2. thanks a lot............
View Tutorial          By: mks at 2013-01-03 06:50:05

3. thanks a lot ..
View Tutorial          By: indra at 2009-03-25 15:40:03

4. Very precisely and simply explained.
View Tutorial          By: Deepak at 2015-01-05 08:37:01

5. Please some one send me the 6th program developed
View Tutorial          By: mounika at 2008-04-25 02:49:56

6. Interesting introduction...thank you
View Tutorial          By: arun at 2010-04-05 05:59:34

7. really really very good
thanks all
a

View Tutorial          By: bade3 at 2010-01-01 18:52:15

8. Thanks for the Topic. But there are many more comp
View Tutorial          By: Uditha Madumal at 2010-09-15 19:39:13

9. javax.microedition.media.MediaException: Malformed
View Tutorial          By: adi at 2012-04-01 11:51:17

10. Dude, u xplaining lyk u already telling pros!Pls t
View Tutorial          By: Brianjambo at 2009-04-14 06:32:13