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. great explaination !!!
View Tutorial          By: aman at 2012-10-02 06:55:55

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

3. i m new in java plz send package of simple program
View Tutorial          By: iqbal ahmad at 2009-09-07 01:26:41

4. thanks a lot dude,my lecturer took 2 weeks to expl
View Tutorial          By: praveen malinga at 2010-02-25 07:53:01

5. I get theses errors and apparrently it cannot find
View Tutorial          By: Abhaya at 2013-02-20 22:42:18

6. java program to maintain the books details like Bo
View Tutorial          By: Prabha at 2013-08-28 12:34:00

7. i wnt develope application on cal time send messag
View Tutorial          By: saurab at 2012-10-11 12:02:52

8. hi,
plz help me i cannot find the way out o

View Tutorial          By: Yash at 2008-05-07 16:59:20

9. The smiple easy and best way is :)
--------

View Tutorial          By: Sandhya at 2012-06-21 06:08:25

10. How do u edit the text ? this is always replacing
View Tutorial          By: anurag at 2012-08-23 07:24:47