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. Hai,
I have the same problem *** time out a

View Tutorial          By: Anitha at 2009-04-20 03:12:23

2. good job.. i understand it clearly..
its in

View Tutorial          By: xmplexd at 2010-08-04 02:12:30

3. these above examples of overloading and overriding
View Tutorial          By: janmejay pant at 2011-03-02 22:06:16

4. Ku is quite correct. When you create any object, i
View Tutorial          By: Avnish at 2010-10-28 04:00:20

5. Thanks
View Tutorial          By: PARIKSHIT SHARMA at 2011-12-23 22:33:39

6. its very nice
View Tutorial          By: keerthi at 2012-06-28 17:04:36

7. how can i use <img> tag in message body?

View Tutorial          By: Sonal at 2012-11-07 07:05:33

8. where do i download the DOM and SAX jar?
View Tutorial          By: David at 2011-11-11 03:04:11

9. Hello, I have stupid questions, but I need to ask
View Tutorial          By: Johnson Edison at 2012-12-13 17:10:57

10. hi,
i got an exception :in thread mai

View Tutorial          By: N.Venugopal at 2009-08-27 05:25:07