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
- 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
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
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
MultiLevel Inheritance sample in Java
Archived Comments
1. vry nice example....thanx..
View Tutorial By: rekha at 2010-09-14 11:55:38
2. hi frnds help me please .javamail program not bee
View Tutorial By: sella at 2011-10-05 18:33:22
3. Thanks, you save my day!
View Tutorial By: ivex at 2015-06-25 20:20:07
4. This is very much useful to me to complete my assi
View Tutorial By: Eva Jhonson at 2012-09-30 16:44:08
5. "I get an error returned saying the SMPT serv
View Tutorial By: Dennis at 2011-06-24 10:18:10
6. Great article! Simple and precise. Thanks!
View Tutorial By: dz at 2014-10-06 04:36:56
7. i have to retrieve data from database which is on
View Tutorial By: abhishek at 2012-04-05 05:04:01
8. "This happens immediately, and before any oth
View Tutorial By: David at 2007-10-02 06:52:20
9. Hi friends i am the beginner ..
please guid
View Tutorial By: Jigar at 2013-05-20 11:04:03
10. i want simple program of function used in recursio
View Tutorial By: manish at 2009-05-19 01:03:19