Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NoClassDefFoundError: javax/activation/DataSource

843830May 31 2006 — edited May 31 2006
I am trying to run this program that I have written. It compiles fine but when I try to run it, I am getting following error:

javaw -classpath c:\work\115\Classlibs;C:\javamail-1.4\mail.jar;.;.. App

Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource
at SendMail.postMail(SendMail.java:39)
at App.main(App.java:17)

Process App exited abnormally with code 1

I am using emacs to compile and run this program. I did setup the classpaths for mail.jar and activation.jar. On .emacs, I only setup classpath mail.jar but when I do add activation.jar, I get same error but with javax/authentication. Any advices?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 28 2006
Added on May 31 2006
1 comment
2,014 views