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. Hi everyone!
Pls I dnt know hot to configur

View Tutorial          By: DSE90 at 2010-02-12 12:05:57

2. Definitely Struts is great. I have posted an artic
View Tutorial          By: Ashish at 2008-09-02 08:04:49

3. A very good example to kickstart my preparation on
View Tutorial          By: Javaenthu at 2013-07-28 06:35:44

4. Thanks and easy to understand.....impressive logic
View Tutorial          By: Dj at 2009-11-26 13:33:34

5. Thanks a lot.
View Tutorial          By: Nirwana at 2009-04-24 05:17:10

6. can you gave us a sample form that has a design
View Tutorial          By: niknik at 2011-07-01 09:39:21

7. I am running it within NetBeans. I set a breakpoin
View Tutorial          By: PeteC at 2014-02-22 18:57:14

8. Hi.....u have put an extra backslash in the last f
View Tutorial          By: Samantha at 2011-05-12 12:54:39

9. Hi Rajesh, you have found the right site. look at
View Tutorial          By: mohan at 2008-07-27 08:55:17

10. can client use prinwriter?????
View Tutorial          By: sujay at 2009-02-20 00:23:33