axis运行时 提示could not find class javax.activation.DataHandler from file activation.jar axis没找到activation.jar,这个.jar不在jdk里的 将activation.jar考到工程的classpath中或放到tomcat的lib下
解决报错: Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource at com.self.mail.SimpleMailSender.sendTextMail(SimpleMailSender.java:38) at com.self.sendEmail.main(sendEmail.java:36)
IOException while sending message; nested exception is: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type text/plain; charset=UTF-8 解决上面问题的jar包