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. very nice tutorial.
Thanks..
View Tutorial By: Ramar at 2011-06-16 08:16:14
2. Nice Tips thank you
View Tutorial By: Giritharan at 2013-04-11 09:24:37
3. Hey i see some lines of code in order to displpay
View Tutorial By: Bala at 2013-01-09 13:58:48
4. I think u've done well, just that more examples wi
View Tutorial By: Mac at 2011-01-23 10:22:10
5. can for statement be used in a switch statement fo
View Tutorial By: Osei Quadwo at 2014-10-08 20:12:17
6. Did you check if you are using the correct usernam
View Tutorial By: Murugan at 2011-11-18 09:28:47
7. I am not able to open the rar file, can you please
View Tutorial By: Chandra at 2008-08-07 10:35:59
8. nice to learn abt it
View Tutorial By: aice at 2012-08-25 12:49:35
9. I need the multiple record store RMS code.Pls help
View Tutorial By: Raghuvir at 2009-05-13 23:03:44
10. Hi
I tried to use this class , I don't get
View Tutorial By: arnav at 2015-03-27 06:01:22