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



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. This can also prevent Outlook from using the autod
View Tutorial          By: Morgster79 at 2012-03-21 05:07:42

2. i get this error too.
: Parent: child proce

View Tutorial          By: Anon at 2009-02-25 08:30:58

3. Hey guys, can u help me out over here..
thi

View Tutorial          By: Ridge Fernandes at 2012-01-19 04:09:45

4. the example program that given above for recursion
View Tutorial          By: bharathi at 2012-07-17 09:31:14

5. Thanks....
View Tutorial          By: A.V. Bajaj at 2012-06-02 09:40:16

6. thanks a lot man....
View Tutorial          By: Praveen at 2012-12-03 08:36:51

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

8. Thanx................!!!!!!!!!!!
View Tutorial          By: ankita at 2012-01-21 19:16:54

9. Like every other Java recursion example, this exam
View Tutorial          By: Uriah at 2010-05-08 18:59:16

10. Thank you!!!

just to make things c

View Tutorial          By: Oscar Torres at 2015-02-19 14:25:05