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 shri_karwa@yahoomail.com


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. simply super post
View Tutorial          By: vinodh at 2010-05-05 00:29:12

2. I've been satisfied with your tutorial site. Since
View Tutorial          By: Mark Harold F. Manguino at 2008-08-06 05:00:54

3. good one
View Tutorial          By: thyagesh at 2011-12-06 05:06:27

4. Thank you very much for your help!!
View Tutorial          By: Ajay Singh at 2009-10-21 22:17:21

5. hiii frds i want to run this program can i run usi
View Tutorial          By: arun kumar ojha at 2011-07-20 00:59:10

6. nice example..
View Tutorial          By: righana at 2011-07-19 08:46:50

7. Great work ;)
View Tutorial          By: Rizwanulla Sharieff at 2012-08-21 04:42:41

8. A more complete description of the common pitfalls
View Tutorial          By: Phil at 2012-11-25 02:06:49

9. Nice explaination of constructor and destructor. B
View Tutorial          By: Anon at 2009-03-01 03:50:06

10. hello, that was very useful
but i have a by

View Tutorial          By: echo at 2011-04-05 11:50:41