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. hi sr.
do u have any idea , how to convert

View Tutorial          By: gohila at 2012-08-15 14:31:31

2. Sir, can i execute the program from windows enviro
View Tutorial          By: krishna at 2014-04-08 07:05:30

3. very good for programing
View Tutorial          By: kiran at 2007-12-06 00:39:47

4. i am run code this rectify this error please some
View Tutorial          By: indiran at 2010-01-28 01:45:56

5. thank you sir
View Tutorial          By: sivaranjani at 2015-01-30 01:15:40

6. Hi, I need the complete working code for sending a
View Tutorial          By: Unnati at 2011-07-13 05:06:06

7. It seems like your getConnection doesnt recognize
View Tutorial          By: Partha at 2009-11-28 11:32:53

8. nice one
View Tutorial          By: priyaaaaaaaaaaaaaaa at 2011-06-21 08:04:39

9. Can u please tell me how to compile and execute a
View Tutorial          By: RJ at 2010-04-20 01:30:10

10. method overloading possible across classes????
View Tutorial          By: Rohit at 2011-01-26 20:23:02