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. I want to know the difference between java and .ne
View Tutorial          By: Jack at 2010-06-10 07:40:35

2. Hi, i am newly in java,please send me on sample pr
View Tutorial          By: aruna.k at 2012-12-13 06:05:44

3. thanks Mr Ramlak
i m using samsung j600 mob

View Tutorial          By: yash at 2008-05-13 15:05:49

4. Good Explanation for the collections. The output f
View Tutorial          By: kalaivanan at 2012-04-11 06:51:49

5. how to show text in tab menu & when i selected
View Tutorial          By: shadah at 2012-05-05 14:14:37

6. That was very nice yaar.
View Tutorial          By: sana at 2014-02-21 09:20:34

7. i need java simple programs
View Tutorial          By: Tharani at 2010-01-22 06:39:25

8. i tried your code but i got an error on this line<
View Tutorial          By: edward at 2011-12-09 11:32:30

9. Easy to understand........ thanks man
View Tutorial          By: vikash bhardwaj at 2013-06-25 07:07:54

10. super
View Tutorial          By: asasdfsa at 2014-05-29 05:23:04