I am trying to send an AutoGeneratedEmail from my javaapplication.
The jar files I use are mail.jar and activation.jar. But somehow both are not compatible and my code does not work.
My code is
And when I run without activation.jar it gives following error
Exception in
thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource
at com.vero.vas.email.EmailUtils.sendIfSaleEmail(EmailUtils.java:33)
at com.vero.vas.client.app.TestSendingEmail.main(TestSendingEmail.java:12)
Can someone tell me how to know the dependancy of mail.jar on activation.jar?
Thanks in advance
[edit]Add code tags. CR[/edit]
[ September 09, 2008: Message edited by: Campbell Ritchie ]