报错1:java.lang.NoClassDefFoundError: javax/activation/DataHandler at org.apache.commons.mail.Email.createMimeMessage(Email.java:1832) at org.apache.commons.mail.Email.buildMimeMessage(Email.java:1268) at org.apache.commons.mail.Email.send(Email.java:1436) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564) at RJavaTools.invokeMethod(RJavaTools.java:386)Caused by: java.lang.ClassNotFoundException at RJavaClassLoader.findClass(RJavaClassLoader.java:383) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499) ... 8 moreNULLError: NoClassDefFoundError (Java): javax/activation/DataHandler
原因分析:缺少activation.jar、mail.jar这两个jar包
解决办法:
1.下载这两个jar包
mail-activation.rar
(362.42 KB, 下载次数: 10851)
|