Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : Asela

Comment Added at : 2012-01-26 18:35:57

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi
I tried to use this on a windows 7 32 bit OS but I get this exception
javax.comm.NoSuchPortException
at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java: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:662)
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:662)

I have copied comm.jar , win32com.dll and javax.comm.properties files to appropriate folders
my javax.comm.properties
looks like this
#
# Drivers loaded by the Java Communications API standard extension
# at initialization time
#
# Format:
# Each line must contain ONE driver definition only
# Each line must be of the form:
# driver=<ClassName>
# No spaces or tabs in the line.
# ClassName must implement the interface javax.comm.CommDriver
# example: driver=Win32Serial
#
#
# The hash(#) character indicates comment till end of line.
#
# Windows Serial Driver
Driver=com.sun.comm.Win32Driver


which is the only part I'm not sure whether correct or not
anybody out there could help to fix this ?
:)


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. Thank you for this. I am a beg and this is making
View Tutorial          By: mac at 2011-08-23 13:47:15

2. Actually i had downloaded all the files but it thr
View Tutorial          By: bornwithpowers at 2009-11-11 04:48:21

3. I got the solution people. just do the following a
View Tutorial          By: Nicholas Ndegwa at 2011-05-03 03:05:03

4. awesome...its very understandable one..thnq..:)
View Tutorial          By: sharan at 2010-02-08 10:58:17

5. The code gives the following exception :-
<

View Tutorial          By: Lourdu Felix at 2009-01-26 03:37:53

6. hi,
i am download 5 files and instantiate

View Tutorial          By: ganesh kumar at 2008-09-23 05:27:16

7. Great!!!!!!!!!!!!!!!!!!!!
View Tutorial          By: Raghbendra Nayak at 2012-03-28 12:54:35

8. help to place a menu inside a menu
View Tutorial          By: sandy at 2009-07-29 05:57:28

9. I have no mounted the sd card, and I have the &quo
View Tutorial          By: Cgamboa at 2012-12-01 06:39:14

10. good and nice
View Tutorial          By: Elayaraja j at 2011-06-18 05:30:07