I am developing a application with the function of JavaMail!
And I had add the activation.jar into the application''s buildpath.
But exception occured when invoked Transport.send(Message), as following:
Exception in thread "main" java.lang.NoClassDefFoundError: [b]com/sun/activation/registries/LogSupport[/b]
at javax.activation.MailcapCommandMap.<init>(MailcapCommandMap.java:140)
at javax.activation.CommandMap.getDefaultCommandMap(CommandMap.java:61)
at javax.activation.DataHandler.getCommandMap(DataHandler.java:153)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:611)
at javax.activation.DataHandler.writeTo(DataHandler.java:315)
at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:248)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1268)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2012)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1980)
[b]at javax.mail.[u]Transport.send[/u](Transport.java:97)[/b]
at hello.SendMail.send(SendMail.java:35)
at hello.SendMail.main(SendMail.java:21)
Somebody give me a hand please!
[Message sent by forum member 'prospectyang' (prospectyang)]
http://forums.java.net/jive/thread.jspa?messageID=300920