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

843830Jan 10 2005 — edited Apr 1 2009
This is a strange one. A Google search has turned up no useful solution. For some reason the mail API does not work on my computer. It works on others in my shoppe, but not mine. I get the error about when it tries to create the message.
		Properties props = new Properties();
		props = System.getProperties();
		props.put("mail.smtp.host","image1");
		props.put("mail.smtp.port",String.valueOf(25));  
		javax.mail.Session s = javax.mail.Session.getInstance(props, null);
		Message message = new MimeMessage(s);
Nothing fancy. It doesn't work in any project I create. And these projects are exactly the same as what's on my co-workers computers where it does work. Yes I have the activation.jar. Yes it is in my classpath. I can type out the classname in my IDE, so my IDE at least sees it if that means anything.

Any help appreciated. This problem essentially means I can do no e-mail testing on my computer.

Thanks,
Karl
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2009
Added on Jan 10 2005
8 comments
916 views