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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. Hi,
I am Mahesh. i want to sending sms cod
View Tutorial By: Mahesh at 2011-05-20 05:24:22
2. Hi,
I generally dont write comment on artic
View Tutorial By: Ankur Goyal at 2013-12-20 09:21:34
3. how to get this list to be alphabetically correct?
View Tutorial By: Vincent at 2011-06-14 07:36:58
4. it works well thanks
View Tutorial By: Zahran at 2011-12-08 03:07:07
5. i think this ist perfectly fine :) if you don't kn
View Tutorial By: julian at 2011-03-07 05:54:08
6. The example given here are simple and easy to run
View Tutorial By: Kranti at 2012-04-26 10:18:34
7. I want to send a message using mobile browser to s
View Tutorial By: Richa Bhatia at 2009-12-08 22:33:36
8. Thanks so much!
View Tutorial By: Viet at 2013-01-15 15:02:52
9. Yes Left shift result is wrong its like
5
View Tutorial By: Ragunath k at 2010-05-10 04:45:33
10. This works great, just remember to add <uses-pe
View Tutorial By: Nick at 2012-06-20 07:37:15