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



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

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

Archived Comments

1. is it possible to change the increment variable?
View Tutorial          By: Lundi at 2013-04-08 21:21:13

2. help me for this nested for loops
2 3 4 5
View Tutorial          By: nadzirah at 2012-10-12 15:33:20

3. This one is helpful. Thanks

Is th

View Tutorial          By: Umesh Aawte at 2009-06-23 06:43:55

4. can u access by a tutorial by using java script
View Tutorial          By: Benjtaz at 2011-07-11 06:22:16

5. I am executing this code using NetBeans6.9 and get
View Tutorial          By: Rohit at 2011-04-19 11:07:59

6. @ anub : This is because you need to add external
View Tutorial          By: Sushil at 2009-09-09 12:24:23

7. Exception in thread "main" java.lang.NoC
View Tutorial          By: Lahrach Abdelhakim at 2015-02-18 14:38:03

8. Fantastic work guys
View Tutorial          By: wizard at 2012-09-22 04:18:59

9. Thanks a lot for that excellent explanation. It ha
View Tutorial          By: Gregory at 2014-12-30 05:49:21

10. Thanks,It worked.I tried with Microsoft Visual C++
View Tutorial          By: gaurav at 2013-12-04 08:27:35