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. Muchas Gracias, me ha servido de mucho el aporte.<
View Tutorial          By: Juan Carlos at 2009-03-25 18:11:37

2. For me it is executing without error, But not send
View Tutorial          By: Vijay at 2011-02-19 01:51:08

3. Great job!
Lot of things cleared...

View Tutorial          By: alok at 2009-03-18 10:45:25

4. this is a site site for our problem to be sorted o
View Tutorial          By: Atique at 2009-11-02 00:15:18

5. excellent for a beginer in inet address ...
View Tutorial          By: Tony at 2009-08-13 22:39:48

6. i have been trained in java stream. But i dont kno
View Tutorial          By: savio at 2013-01-23 10:15:51

7. document.loginform.userName.focus();
return

View Tutorial          By: Parthiban at 2014-07-21 08:03:00

8. programming for java is excelent
View Tutorial          By: roldan at 2010-07-19 00:22:52

9. How can i read PDF files from external memory(SD c
View Tutorial          By: Aswanth at 2014-03-31 09:46:26

10. pls send simple to hard j2me coding
View Tutorial          By: Seenu at 2008-10-29 15:19:03