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. very nice example
View Tutorial          By: lois at 2010-10-05 23:05:01

2. How to execute all these 5 files plz tell me step
View Tutorial          By: Umesh Kamankar at 2011-03-19 10:56:29

3. Hey thanks for your tutorial. But i'm getting an e
View Tutorial          By: acc at 2013-07-25 14:30:50

4. can i connect mobile phone to usb port instead of
View Tutorial          By: Nevil at 2010-01-11 00:19:17

5. Hello all,

I need the codes for sen

View Tutorial          By: Fionna at 2009-07-13 00:34:45

6. Thanks for the article. I got some clearance now.
View Tutorial          By: Reddy at 2008-03-15 00:02:17

7. This is starting program for me in j2me.This will
View Tutorial          By: Surya at 2010-07-26 03:29:47

8. Hi,i'm added the certificate to java keystore,But
View Tutorial          By: chakri at 2014-09-18 07:22:41

9. can anybode tell me how can i make my own bluetoot
View Tutorial          By: Prasenjit at 2013-10-11 06:57:13

10. Hello guys, I'm developing java program to send SM
View Tutorial          By: Rania at 2010-09-08 09:04:47