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. hello Ramlak I am getting Error Time Out At Step 6
View Tutorial          By: hardik at 2011-04-13 05:12:06

2. Hello,
I am not getting any output.

View Tutorial          By: Niket DOshi at 2015-05-01 03:03:49

3. Thanks for the above description, but pls let me k
View Tutorial          By: Amit Goyal at 2009-09-25 05:33:10

4. At my phone number, it showing

5 re

View Tutorial          By: Zafar Iqbal at 2013-04-02 19:48:32

5. Incomplete article; Singleton session bean? And re
View Tutorial          By: vaibhav sakpal at 2013-08-29 07:35:37

6. Hi Divya, Obviously some other application is usin
View Tutorial          By: Ramlak at 2008-05-01 22:16:12

7. how to read csv file using Java
View Tutorial          By: Shireesha at 2013-12-26 07:34:22

8. really nice tutorial
View Tutorial          By: Gaurav Balyan at 2012-01-03 11:07:05

9. What about GraphicsDemo (class...?) mentioned in l
View Tutorial          By: Achi at 2008-01-08 04:21:57

10. COOL...........Nice ,understanding .simple i like
View Tutorial          By: DON at 2014-06-12 16:48:46