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. Excellent Article.
View Tutorial          By: Praveen Kumar S at 2011-03-24 23:14:44

2. It is really a nice example when you need to sort
View Tutorial          By: Ranjan at 2010-10-04 23:14:33

3. please send basic sample programs & explanatio
View Tutorial          By: rose at 2013-01-16 04:43:38

4. I dont want my client using my application to do a
View Tutorial          By: zaffa at 2011-07-27 06:52:09

5. This has tread error , copy and paster hole code a
View Tutorial          By: Daniel at 2015-01-21 16:24:36

6. its realy gud which clears minor douts regarding t
View Tutorial          By: Shripad at 2010-01-19 05:40:41

7. frnds i want serial communication over beaglebone
View Tutorial          By: Rajneesh at 2015-04-12 11:23:16

8. Hello guys, the code above is the full complete co
View Tutorial          By: Dalma at 2012-10-03 02:50:33

9. pls send to me example about stacks
becaus

View Tutorial          By: suliman at 2011-12-10 08:02:01

10. i like java language.
View Tutorial          By: deepika at 2014-09-22 15:11:39