Skip to Content
0
Jan 28, 2010 at 10:57 PM

java.lang.NoClassDefFoundError: javax.activation.DataSource

833 Views

Hi,

I am trying to send email through my JSP Dynpage Component on Button Click.

I use below code to send the email :

STEP 1: Properties props = System.getProperties();

STEP 2: props.put("mail.smtp.host", "mailout.company.name");

STEP 3: Session session = Session.getDefaultInstance(props, null);

STEP 4: MimeMessage message = new MimeMessage(session);

at STEP 4: I get Java.lang.NoClassDefFoundError: javax.activation.DataSource

can anyone please help me to get around this error I added activation.Jar in my project through

Project>Properties>BuildPath but still keep getting the same error.

thanks