JavaMail问题之Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream

JavaMail问题之Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream

Exception in thread "main" Java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream

解决方案:

   JavaEE版本和JavaMail的版本不一致,请将sun公司上下载最新版本.http://java.sun.com/products/javamail/downloads/index.html
   例如:javaMail 1.3以下的如果在javaEE5上就会出现上面的错误,
   如果还出现此问题,则是因为javaEE5中包含有javaMail的类但是却不全面,所以出本身的JavaMail
   包冲突.用rar打开X:/Program Files/MyEclipse 6.0/myeclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_x.x.x.zmyeclipsexxxxxxxxx/data/libraryset/EE_5/javaee.jar
,然后删除mail,一切就ok了.

你可能感兴趣的:(JavaMail问题之Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream)