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



Comment Added by : Prakah

Comment Added at : 2011-12-22 17:10:48

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hi i 've used this SMSClient.java in my simple program as below

public class sms
{
public static void main(String args[])
{
SMSClient sm = new SMSClient(1);
sm.sendMessage("8012329248","Hi");
}
}

but i got error like this
Exception in thread "main" java.lang.NoClassDefFoundError: sms/java
Caused by: java.lang.ClassNotFoundException: sms.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: sms.java. Program will exit.

Pls any one tel me rectify this error, thanks n advance


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. Very good !!
View Tutorial          By: SGK at 2009-04-26 23:53:44

2. I used HyperTerminal directly to check whether mod
View Tutorial          By: Pugal at 2009-10-15 03:38:08

3. short and very clear
View Tutorial          By: ramesh at 2009-07-22 22:27:25

4. Hi...Really nice post..But i got the error like
View Tutorial          By: Nithya at 2013-04-11 09:37:50

5. it 's great
View Tutorial          By: tanawat bhtk at 2008-03-19 22:17:53

6. this article is excellent....solve all my doubt re
View Tutorial          By: pramodk at 2011-07-18 14:22:18

7. basic example on serialization... its good and cle
View Tutorial          By: Rag at 2012-01-08 02:53:41

8. This works perfect for me. The only big problem is
View Tutorial          By: Eric at 2014-11-20 03:49:19

9. ,./;'wat i searching for is that, the complete jav
View Tutorial          By: chor at 2010-03-28 23:09:37

10. I want to use concept of overriding and i want to
View Tutorial          By: Aniket at 2013-06-20 10:23:10