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. thanks for this example
View Tutorial          By: hai at 2011-12-16 05:36:14

2. it is working....great
View Tutorial          By: mahesh maduranga at 2011-03-27 23:01:57

3. hey Mounika..did u solve ur problem ??if u did ple
View Tutorial          By: agnas at 2008-04-28 23:59:37

4. main is not needed for a simple program...

View Tutorial          By: manoj at 2012-05-29 17:46:08

5. ... it is nice site coz 8 can help students lyk me
View Tutorial          By: mayflor at 2011-06-29 03:57:51

6. Hi, i tried this tutorial with my own database and
View Tutorial          By: Dejan at 2015-03-18 13:06:27

7. Can u please help me to implement traversing forw
View Tutorial          By: Rahi at 2015-09-18 11:12:32

8. it giving me error in following statment (using wi
View Tutorial          By: prathamesh at 2007-03-16 05:57:20

9. Hi
I tried to use this class , I don't get

View Tutorial          By: arnav at 2015-03-27 06:01:22

10. Thank you , concept of static is clearly explained
View Tutorial          By: Jagan at 2012-12-10 10:42:42