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. pls tell me how to insert data in database .
View Tutorial          By: sankar at 2009-10-22 05:37:45

2. nice article..
View Tutorial          By: yummy at 2010-01-05 21:18:35

3. Neatly explained about the three important functio
View Tutorial          By: Jitendra Lenka at 2011-02-03 06:34:10

4. tell me the new page create in java and attach wi
View Tutorial          By: muhammad nadeem at 2011-07-06 00:12:08

5. dear sir, plz answer my following questions:

View Tutorial          By: hawa at 2012-01-29 08:29:39

6. which method is called if i call overriden method
View Tutorial          By: sarah at 2012-02-01 13:36:10

7. plz can u give me code for database connectivity f
View Tutorial          By: nilam at 2012-03-15 12:54:07

8. I need you to Write me a program to initialize one
View Tutorial          By: Sayed maseer at 2015-06-20 05:09:12

9. It's very very useful for me. thank you.
View Tutorial          By: thirumalai at 2009-01-28 03:25:25

10. Can anybody send me the java full code for sending
View Tutorial          By: David at 2010-08-22 22:57:38