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

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. Awesome, I am Impressed with the way the example h
View Tutorial          By: Darshan at 2010-07-09 01:34:22

2. it is good to unstand and easy to remember forever
View Tutorial          By: Abdul at 2011-11-10 21:03:41

3. please correct things....and plz dont misguide
View Tutorial          By: amit verma at 2015-02-19 08:44:55

4. the 2 not required lines
1) #include

View Tutorial          By: saurabh at 2012-02-20 06:33:57

5. whoo... its very hard
View Tutorial          By: Anonymous at 2009-01-13 20:17:20

6. Thank you for giving info.
View Tutorial          By: Deepak cheela at 2013-01-23 07:03:08

7. example required
View Tutorial          By: revathy at 2009-09-03 01:53:04

8. nice one
View Tutorial          By: dhusor at 2012-05-08 17:38:50

9. how can get ip url...?
View Tutorial          By: arjuna at 2011-11-23 03:31:46

10. steps 2 create and use tiles
View Tutorial          By: sasank at 2008-10-03 08:06:43