Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : pablo

Comment Added at : 2014-08-03 16:10:55

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
I am receiving an error as
Error java.lang.NullPointerException
The code is

package p1;
import javax.comm.*;
import p1.SMSClient;
public class test{

private static int sendMessage;

/**
* @param args
*/
public static void main(String[] args) {
try{
SMSClient obj=new SMSClient();
int n=obj.sendMessage("9062322456", "test");
}
catch(Exception e){System.out.println("Error " +e);}

//Error java.lang.NullPointerException
}
}


I would also like to knwo where is the smsc number in these four files and where can i find it in ??
Is it the operators code??


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 lot.Its working good...... thanks lot lot..
View Tutorial          By: Mohanraj at 2011-12-07 05:23:26

2. Hello sir pls send me
com.sun.speech.freett

View Tutorial          By: sana at 2011-12-23 16:16:24

3. HELP! HELP! HELP!
i got an time out at step

View Tutorial          By: sumit at 2009-04-03 20:19:51

4. well...raghu download the sun api...whose link is
View Tutorial          By: rima at 2008-12-27 22:22:03

5. Its working ,,, gud stuff.
View Tutorial          By: Atul at 2011-07-21 10:34:44

6. how to java program run in system and how to open
View Tutorial          By: safeek at 2012-10-20 06:54:38

7. nice
View Tutorial          By: ravi at 2010-11-26 02:46:56

8. Java is very queit Langauge.
View Tutorial          By: Ashutosh Srivasatava at 2008-10-16 06:24:02

9. where i can find jar files?
please tell me

View Tutorial          By: chandu at 2012-06-17 14:14:28

10. i need to code for sparse matrix in java. please
View Tutorial          By: sudhi at 2012-10-01 09:34:57