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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. I had a problem, which is the password when window
View Tutorial By: jua at 2013-09-16 23:16:27
2. ... it is nice site coz 8 can help students lyk me
View Tutorial By: mayflor at 2011-06-29 03:57:51
3. Thanks Steven, That is an exhaustive list of diffe
View Tutorial By: Robert at 2008-12-08 22:17:47
4. nice explanation indeed, but can u please explain
View Tutorial By: ishika at 2015-06-23 09:16:16
5. please give example code with defined variable.
View Tutorial By: shajjad at 2011-02-13 20:56:09
6. one closing bracket ')' is required at while loop
View Tutorial By: varsha Tambe at 2013-01-07 09:34:37
7. can you give the program about the fast food by us
View Tutorial By: grace at 2008-09-22 00:48:37
8. Can you explain when the user input through the ab
View Tutorial By: mujmil at 2008-02-11 18:46:00
9. Hey..can anyone please tell me how to run linux co
View Tutorial By: ahmed at 2008-09-05 10:22:52
10. the code works fine. you just need to create a mai
View Tutorial By: Nabil at 2011-08-09 11:11:03