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:53:51

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi
I have done all the steps mentioned above but I still 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)
BUILD SUCCESSFUL (total time: 0 seconds)


I'm trying to use this on a Windows 7 OS
and my
javax.comm.properties file 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
Im not sure whether I have to add any addition to this
plz help to over come 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. This matter is really too good.
View Tutorial          By: Ashwin perti at 2009-07-08 04:43:55

2. A good and useful tutorial for beginners.
t

View Tutorial          By: Hayk at 2010-01-12 10:55:15

3. Thanks a lot :-) It is very informative
View Tutorial          By: praveen at 2010-05-03 22:17:19

4. Hi.....u have put an extra backslash in the last f
View Tutorial          By: Samantha at 2011-05-12 12:54:39

5. Thank alot
View Tutorial          By: Naganatarajan at 2010-01-07 05:54:17

6. Hi This is very fine to understanding struts flo
View Tutorial          By: Abinash at 2011-06-28 08:27:18

7. tnx
View Tutorial          By: arion at 2011-06-03 01:24:30

8. Good example.

Leslie V
www.g

View Tutorial          By: Leslie V at 2009-10-14 00:47:06

9. Where should I put the xml file ??????????
View Tutorial          By: Marya at 2014-03-21 16:01:13

10. hi friends im the biginer of java
how to co

View Tutorial          By: Rock at 2013-05-14 09:27:19