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



Comment Added by : Ron

Comment Added at : 2013-06-21 00:58:27

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
I need some help. I am a programmer - but quite new to Java.

I have copied the supplied source files to my home directory - and installed the comm module.

I have created this small test wrapper (sendSMS.java in my home directory too):

public class sendSMS {
public static void main(String args[]) {
SMSClient smsc = new SMSClient(1);
int ret = smsc.sendMessage("+61410541281", "Test message");
}
}

But when I try to compile I get this:

/home/ron > javac sendSMS.java
sendSMS.java:3: error: cannot find symbol
SMSClient smsc = new SMSClient(1);
^
symbol: class SMSClient
location: class sendSMS
sendSMS.java:3: error: cannot find symbol
SMSClient smsc = new SMSClient(1);
^
symbol: class SMSClient
location: class sendSMS
2 errors

Can someone guide me as to what I need to do?

Cheers,
Ron.


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. ok good.But what about plug-in's Information.
View Tutorial          By: Ramarao at 2010-01-31 07:32:02

2. thanks this material is very helpful for me
View Tutorial          By: Anonymous at 2009-05-09 08:04:31

3. Try this

import java.net.*;

View Tutorial          By: Asad at 2014-02-13 05:55:26

4. plz can u give me code for key excange b/n pda &am
View Tutorial          By: visnas at 2009-05-04 20:18:32

5. hi, IF ANY ONE REALLY INTRESTED TO RUN THIS PROGRA
View Tutorial          By: sunil kumar sahu at 2010-10-09 11:50:56

6. i am getting the following error:
cannot fi

View Tutorial          By: santhosh at 2009-09-24 09:13:57

7. Whne i run this code ,it does not return any ports
View Tutorial          By: amit at 2009-06-10 02:11:13

8. Can some body throw more light on TRANSIENT ....
View Tutorial          By: Anish at 2010-08-03 07:30:58

9. excellent explanation...............Thanks for mak
View Tutorial          By: Kiran Leo at 2012-12-08 06:41:26

10. thnx for the nice tutorial. but i need to create a
View Tutorial          By: sharath at 2013-09-07 16:29:19