【异常】Could not find class 'javax.activation.DataHandler'
2014-03-17 17:10
537 查看
Android中使用java mail 1.4.1的lib发邮件时出现该问题,
解决方法:
在android工程lib目录下放入additionnal.jar , activation.jar ,mail.jar
下载地址:https://code.google.com/p/javamail-android/downloads/list
下载不下来的到这里下载:http://download.csdn.net/detail/weizi4332/7054871
Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeMessage.getDataHandler Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeMessage.setContent Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeMessage.setContent Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeMessage.updateHeaders Could not find class 'javax.mail.MultipartDataSource', referenced from method javax.mail.internet.MimeMultipart.<init> Could not find class 'javax.activation.FileDataSource', referenced from method javax.mail.internet.MimeBodyPart.attachFile Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.getDataHandler Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.setContent Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.setContent Could not find class 'javax.activation.DataHandler', referenced from method javax.mail.internet.MimeBodyPart.updateHeaders
解决方法:
在android工程lib目录下放入additionnal.jar , activation.jar ,mail.jar
下载地址:https://code.google.com/p/javamail-android/downloads/list
下载不下来的到这里下载:http://download.csdn.net/detail/weizi4332/7054871
相关文章推荐
- JAVA错误:could not find class javax.activation.DataHandler from file activation.jar
- Could not find class 'org.jivesoftware.smackx.PrivateDataManager$PrivateDataIQProvider', r
- Could not find class 'javax.naming.directory.InitialDirContext'的解决办法!
- android "Could not find class 'org.apache.http.entity.mime.content.FileBody" error
- 解决 “Could not find class 'com.goole.zxing.Result”和“Multiple dex files define”问题
- Could not find class 'com.pinggupad.Tansuo', referenced from method com.ping和java java.lang.NoClassD
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- Android访问Web Service,遇到Could not find class 'org.ksoap2.serialization.SoapObject' 错误提示。
- Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.edu.bzu.soap.S
- ADT升级后Could not find class 'org.ksoap2.serialization.SoapObject'
- 只有被测APK时运行Robotium测试项目Logcat报错“Could not find class 'com.jayway.android.robotium.solo.Solo'"
- Could not find class 'android.support.v4.view.ViewPager', referenced from method***
- Could not find class 'com.umeng.analytics.d' 解决的方案分享
- Could not find class '****', referenced from method #####
- Could not find class 'android.support.v4.view.ViewPager', referenced from method***
- 使用第三方 'Could not find class 'net.htmlparser.jericho.Source' 错误修复 红色感叹号
- 运行galde编写的UI程序时报错:libglade-WARNING **: could not find signal handler 'gtk_reset'.
- Could not find class '****', referenced from method #####
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- ORA-12516, TNS: listener could not find available handler with matching protocol stack'