Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart)

运行Eclipse自动生成的WebService客户端代码,抛出异常

[main]->Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

 

异常原因是项目中缺少mail.jar和activation.jar

mail.jar出自JavaMail:

http://www.oracle.com/technetwork/java/index-138643.html

 

activation.jar出自JavaBeans Activation Framework:

http://www.oracle.com/technetwork/java/javase/downloads/index-135046.html

 

你可能感兴趣的:(exception,webservice)