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



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. Thanks.. worked perfectly :)
View Tutorial          By: DJ at 2012-04-05 19:40:43

2. Good Article. Small and Sweet...
View Tutorial          By: Anupam Pawar at 2009-05-27 03:04:08

3. Thanks for the article. I got some clearance now.
View Tutorial          By: Reddy at 2008-03-15 00:02:17

4. Well done. I am a mobile application developer. I'
View Tutorial          By: Wendi-tan at 2008-09-03 18:45:41

5. the best!! it helps me a lot.....
View Tutorial          By: shin at 2009-02-15 18:12:31

6. you can see this page: http://devlinslab.blogspot.
View Tutorial          By: luis at 2011-11-08 06:46:23

7. Good example. However as someone said, it would be
View Tutorial          By: Neo Cambell at 2010-03-10 11:02:06

8. Thanks,
But i would like to use an array li

View Tutorial          By: Gustavo at 2011-06-15 21:03:20

9. for(i=0;i<10;i++)
for(j=0;j<90;j++)
View Tutorial          By: karthikeyan at 2012-05-23 05:33:10

10. two of them are equal and third one is less than b
View Tutorial          By: nani at 2011-10-28 10:55:58