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



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. In line No. 23, change stmd to stmt.
Re

View Tutorial          By: Rishi Raj at 2011-07-08 13:50:11

2. Hi Sir...
sir i am a student and I am work

View Tutorial          By: Sanzu at 2013-02-12 09:13:01

3. Hii... pls how can I create a aerver with an inter
View Tutorial          By: WAZIRI at 2010-03-16 11:12:11

4. Thanks for the tutorial.

One questi

View Tutorial          By: Stephen at 2012-06-09 06:36:23

5. Now what the hell does all this mean???
To

View Tutorial          By: Søren at 2011-09-22 03:13:53

6. Great Work for JAVA Beginners
View Tutorial          By: Sudhir Rajgure at 2009-03-01 02:40:00

7. Nice example to understand what does the string To
View Tutorial          By: Spha at 2011-07-14 08:00:03

8. Excellent. I want you to publish about memory allo
View Tutorial          By: Mohamed firnaz at 2011-12-07 04:54:27

9. awesome example
View Tutorial          By: jagjyot singh at 2010-01-12 20:39:04

10. hi,
thier is an error coming with me when i

View Tutorial          By: Tarun at 2013-02-17 03:13:21