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. I was able to modify this to work perfectly.

View Tutorial          By: _Jon at 2012-04-01 23:04:49

2. error :

Object reference not set to

View Tutorial          By: Ramnath at 2011-05-30 04:01:32

3. how to compile and run the above program ? please
View Tutorial          By: samir at 2009-12-22 00:42:52

4. A phone is considered a good phone if all of the f
View Tutorial          By: harish at 2012-12-24 06:59:04

5. its nice.. thank you so much.........
View Tutorial          By: rozen at 2010-04-14 11:21:07

6. Well done. I am a mobile application developer. I'
View Tutorial          By: Wendi-tan at 2008-09-03 18:45:41

7. Thanks for providing this page it works with local
View Tutorial          By: Dharam Jaswal at 2012-02-02 13:19:24

8. Was useful
View Tutorial          By: Vasan at 2008-06-22 05:04:20

9. Protip: you could add some inline assembly with th
View Tutorial          By: Robin Degen at 2011-08-16 23:47:04

10. Whe I compiled the above code, it sends me to the
View Tutorial          By: Koo Larbi at 2014-08-02 22:32:05