java.lang.NoClassDefFoundError: javax/activation/DataSource
843830May 31 2006 — edited May 31 2006I 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?