Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : Ramlak

Comment Added at : 2011-01-14 21:59:39

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi Rushabh, this only means that your port is not available are used by other application.

Use this code to check if that COM port is available..

private static boolean isPortAvailable(int port) {

try {

ServerSocket srv = new ServerSocket(port);

srv.close();
srv = null;
return true;

} catch (IOException e) {
return false;
}
}


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. @Srini

Hi Srini, I can answer your

View Tutorial          By: Sudev Wilson at 2015-04-08 12:23:33

2. hi sir i want to know source code of this program;
View Tutorial          By: rishabh at 2010-08-21 09:30:31

3. Simply explained theory.......
Thanx......!

View Tutorial          By: Priya at 2013-03-03 14:42:05

4. array is the one which can save similar data typed
View Tutorial          By: Cegonsoft Reviews at 2011-07-26 00:54:18

5. that was WMC modem i think not Beetel ADSL 2+ mode
View Tutorial          By: chandu at 2008-12-12 22:05:16

6. I am not able to open the rar file, can you please
View Tutorial          By: Chandra at 2008-08-07 10:35:59

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

8. very useful article. every jsp resource will get g
View Tutorial          By: pechirani at 2011-06-29 04:00:49

9. Can I ask something,

Can you show m

View Tutorial          By: wawa at 2014-05-03 15:28:35

10. it's nice linking up here
View Tutorial          By: kasadha at 2010-10-28 10:34:36