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. <uses-permission android:name="android.per
View Tutorial          By: Dev at 2012-04-06 06:19:03

2. Dude I want to send sms using GSM Mobile connected
View Tutorial          By: Funmarkaz at 2009-08-23 02:59:50

3. It is very help full to me and very simple underst
View Tutorial          By: Reddymalla Babu Sircilla at 2013-02-22 08:28:22

4. please give me more information
View Tutorial          By: nandhini at 2012-09-22 03:49:11

5. class Factorial
{
int fact(int

View Tutorial          By: soph at 2013-02-06 06:49:07

6. Thanks a lot. I've been stuck on this issue for qu
View Tutorial          By: Mark at 2008-04-12 22:01:56

7. superb superb maza aggaya maza aggaya
View Tutorial          By: pramodh at 2012-04-16 05:21:54

8. My question is, from where the name "java&quo
View Tutorial          By: Sreedevi at 2013-05-18 10:41:38

9. thanks! great tutorial!
View Tutorial          By: Gracia at 2013-01-10 07:58:06

10. A more complete description of the common pitfalls
View Tutorial          By: Phil at 2012-11-25 02:06:49