Am new to sending mail and am getting this error when I try to send. Am using Eclipse and the class compiles but fails when it runs.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource at test.MailTest.mail(MailTest.java:51)
This is line 51:
Message msg = new MimeMessage(session);
thanks.