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,

Can anyone suggest a GSM Modem

View Tutorial          By: Archna at 2009-11-06 03:23:14

2. Very good !!
View Tutorial          By: SGK at 2009-04-26 23:53:44

3. For Jaime,

Maybe using JavaScript f

View Tutorial          By: Jair Aviles at 2011-11-22 05:49:05

4. no output as well, i'm getting portlist and portId
View Tutorial          By: raul at 2015-10-09 20:05:02

5. Good day. I managed to get the application to work
View Tutorial          By: thabiso at 2011-06-03 09:21:32

6. Able to connect to mobile
Unable to send me

View Tutorial          By: Prashant at 2011-04-24 01:16:27

7. download jdk
View Tutorial          By: alireza esfandyarinezhad at 2011-03-07 11:52:55

8. You have mentioned that
to use this program

View Tutorial          By: Naasik at 2012-08-05 00:15:57

9. very good to use
View Tutorial          By: baby at 2013-06-14 12:08:14

10. @veera reddy,
the use of creating actionerr

View Tutorial          By: San at 2011-08-28 23:14:39