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



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. this really helps me alot :)
View Tutorial          By: liezl at 2014-08-08 13:38:58

2. i am new to java plz give any sample and simple ja
View Tutorial          By: sham at 2012-03-20 02:30:20

3. very good tutorial
View Tutorial          By: Anonymous at 2009-06-13 01:14:25

4. can you give the program about the fast food by us
View Tutorial          By: grace at 2008-09-22 00:48:37

5. Neatly explained about the three important functio
View Tutorial          By: Jitendra Lenka at 2011-02-03 06:34:10

6. Thank for your clear explanation
View Tutorial          By: htnga at 2009-04-05 18:43:25

7. Hi all this program is working very fine .... i ha
View Tutorial          By: Ashish at 2009-03-25 04:28:25

8. very good explanation... thnx...
View Tutorial          By: gobu at 2009-04-05 23:43:19

9. how to run file IO program?
isn't that must

View Tutorial          By: farah at 2009-08-24 02:41:59

10. Thanks for the description. Am loading my actionse
View Tutorial          By: sridevi at 2012-01-13 10:15:40