Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.
Comment Added by : Anonymous
Comment Added at : 2012-03-25 02:12:52
Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
I set my eclipse as describe above.
I also change my SMSC no. in Sender.java as
private String csca=\"+919032055002\"; // the message center
Now I create one class like this:
public class MainClass {
  public static void main(String[] args) {
    String rec = \"9898565014\";
    String msg = \"Hiiii\";
    SMSClient smsClient = new SMSClient(1);
    smsClient.sendMessage(rec, msg);
  }
}
when I run this program then it show following error:
javax.comm.NoSuchPortException
  at javax.comm.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:105)
  at SerialConnection.openConnection(SerialConnection.java:70)
-----
-----
I am using Airtel MZ16USB Modem which is on COM 17
so where I need to change port number in the program or it will automatically detect this device.
Please help me.....
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. i tried your code but i got an error on this line<
View Tutorial By: edward at 2011-12-09 11:32:30
2. this code works for incoming call but not for inco
View Tutorial By: iman at 2013-08-20 16:21:48
3. how to downlow the different 5 files please !!
View Tutorial By: Agnin at 2009-06-24 05:29:09
4. for me also The code gives the following exception
View Tutorial By: ashitha at 2007-09-12 03:09:12
5. 0
View Tutorial By: zareen at 2011-08-20 08:27:28
6. thaks sir for giving information about adding int
View Tutorial By: vijay kumar at 2012-10-10 04:59:05
7. Good
View Tutorial By: PRANJAL at 2015-08-14 16:38:57
8. can you non grab the data direct from the vector w
View Tutorial By: paul at 2013-08-30 11:22:04
9. I am getting error in setContentView(R.layout.main
View Tutorial By: user at 2012-01-13 06:49:42
10. im beginning to design a program that will deactiv
View Tutorial By: andrew at 2012-01-29 14:32:39