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 alot. Really great and simple example!
View Tutorial          By: leo at 2011-06-06 13:58:32

2. I am suffering with the same error as of ganesh...
View Tutorial          By: Sri Bhavani at 2008-09-30 00:18:38

3. Hi,

I have a error like the import

View Tutorial          By: manigandavenkatesh at 2015-02-12 05:52:05

4. chat
View Tutorial          By: zahra zare at 2009-05-10 07:07:57

5. Hello,
this is good example, but that is on

View Tutorial          By: Zubair at 2011-11-10 20:46:39

6. very thanks... It's very useful to me...
Th

View Tutorial          By: swathi. M at 2015-01-02 16:32:19

7. excellent
View Tutorial          By: alok mishra at 2008-05-12 00:51:57

8. Very precisely and simply explained.
View Tutorial          By: Deepak at 2015-01-05 08:37:01

9. Hi
i am getting this error

c

View Tutorial          By: parab at 2012-08-01 06:24:18

10. tnx, nice code...
View Tutorial          By: Hansoc at 2009-08-18 00:17:58