Comment on Tutorial - How to Send SMS using Java Program (full code sample included) By Emiley J.



Comment Added by : pinnacle

Comment Added at : 2013-06-08 13:08:55

Comment on Tutorial : How to Send SMS using Java Program (full code sample included) By Emiley J.
Hello friends ,
I have downloaded all 5 files and created 6th file...but when i tried to execute its showing the following exception.Please anybody try to solve it...

Exception in thread "main" java.lang.NoClassDefFoundError: javax/comm/SerialPortEventL
istener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at Sender.send(Sender.java:68)
at SMSClient.run(SMSClient.java:39)
at SMSClient.sendMessage(SMSClient.java:30)
at Sample.main(Sample.java:10)
Caused by: java.lang.ClassNotFoundException: javax.comm.SerialPortEventListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: SerialConnection
at Sender.send(Sender.java:68)
at SMSClient.run(SMSClient.java:39)
at java.lang.Thread.run(Unknown Source)


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. I want to send a message using mobile browser to s
View Tutorial          By: Richa Bhatia at 2009-12-08 22:33:36

2. Hi, Can anyone please tell me where we need to cha
View Tutorial          By: Gunjan at 2014-01-02 12:08:41

3. vinod kumar for j2me app development we need one I
View Tutorial          By: saurabh dixit at 2013-04-18 09:59:23

4. not satisfied...

want to print the

View Tutorial          By: nikhil jha at 2010-03-08 04:25:50

5. Yes, as @ Mansi said it's really helpful.
I

View Tutorial          By: Eko SW at 2011-06-22 23:38:22

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

7. I would like to know how to obtain the object that
View Tutorial          By: Steve at 2012-01-18 15:58:31

8. BEST COMMENT EVER:
"Reading the above

View Tutorial          By: Mr.X at 2013-10-02 16:31:42

9. ya its good example
View Tutorial          By: vijaychellappa at 2010-11-10 04:57:42

10. Good one. Clear basic concept
View Tutorial          By: Joshua at 2010-03-12 01:13:08