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



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. Its really good and helpfull..........
chee

View Tutorial          By: sumit at 2009-04-28 05:17:17

2. hi can u send me the complete working code for sen
View Tutorial          By: Brajesh at 2011-04-21 03:07:40

3. Hi Ashish, You just have to create an object of SM
View Tutorial          By: Ramlak at 2007-03-13 09:22:51

4. Thanks...Really nice...
View Tutorial          By: Raj at 2013-02-07 08:58:28

5. not good example to learn the overriding methods
View Tutorial          By: george at 2010-04-25 12:08:20

6. Cool it help me a lot
View Tutorial          By: urdu sms at 2009-10-06 12:16:20

7. what items do i add?
View Tutorial          By: Camo at 2015-09-30 23:02:10

8. dear sir, plz answer my following questions:

View Tutorial          By: hawa at 2012-01-29 08:29:39

9. I'm a beginner, and I was told it is a good practi
View Tutorial          By: Nelson at 2009-08-17 09:13:28

10. Hi Ramlak

First of all thanks for u

View Tutorial          By: Vikas sharma at 2010-05-08 01:09:31