梦幻之旅

DEBUG

   :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  360 随笔 :: 6 文章 :: 136 评论 :: 0 Trackbacks
如果你用myEclipse进行开发的话,运行时可能会出现以下的错误:
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream
原因是jar包版本不统一,解决方法如下:

删除Java EE 5 Libraries/javaee.jar/mail里的包有东西.

具体方法如下:
用rar打开X:/Program Files/MyEclipse 6.0/myeclipse/eclipse/plugins/com.genuitec.eclipse.j2eedt.core_6.0.1.zmyeclipse601200710/data/libraryset/EE_5/javaee.jar
,然后删除mail,一切就ok了.
posted on 2009-04-02 18:18 惠万鹏 阅读(7708) 评论(25)  编辑  收藏 所属分类: Exceptions

评论

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-04-19 17:21 天涯一客
这个问题可以说是把我搞得焦头烂额啊,看了你的文章,我一试,问题如你所说的解决了,非常谢谢啊。
顶!!!!!  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-05-08 15:06 galen
谢谢您。。。。。。。
您太伟大了 呵呵  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-05-26 10:41 degui.chen@qq.com
thx.  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-06-02 19:09 小兔
谢谢你啊,搞了一个下午了,看了大人的这个帖,终于好了,非常谢谢  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream[未登录] 2009-06-25 14:08 tom
你缺了类包啦。。
给你一个JAVA类包搜索引擎,搜一下就知道
http://www.jar114.com  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-07-28 16:00 戴戴
谢谢这位大侠了  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-08-07 16:17 rgy
非常感谢!!!  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-08-08 13:18 wowo
请看这位大侠的解决方案:
http://howsun.blog.sohu.com/129043957.html?act=1249708473602  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-08-15 02:31 flash8627
我该怎么谢你呢.呵呵...在网上找到N多代码不能运行,以为网上没个好的.原来是这个原因,太感谢了,在不在武汉啊,请你吃饭  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-09-05 20:49 ff19871106
太感激啦!我被这个问题困扰啦三天啦,一直都以为应该是我的软件包下载的不完整,原来是这样啊   回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-09-11 21:47 yyz
我也来感谢一下吧,

也是看了这个帖子解决的问题.
  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream[未登录] 2009-10-13 21:39 西部凋情
感谢你一万年!!!!
感谢你一万年!!!!
感谢你一万年!!!!
感谢你一万年!!!!  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream[未登录] 2009-10-21 08:45 123
javax.mail.MessagingException: 502 Error: command not implemented  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-11-02 17:30 我爱你
谢谢你啊,谢谢你,谢谢你  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2009-11-06 19:41 luhui
为什么你都可以!我的删除了也还是不行!郁闷  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream[未登录] 2009-12-13 16:15 111
我的也不行,编译通过,运行有错误,一样的错误,但在JCreator中可以,奇怪呀  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream[未登录] 2010-03-12 01:46 li
thanks a lot  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-03-27 01:54 小小天空
相当感谢,几句话让我轻松发邮件。
相当感谢、相当感谢、相当感谢、相当感谢、相当感谢、相当感谢、相当感谢。。。  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-04-13 14:41 sadsa
兄弟,真是太感谢你了,你真是好人啊  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-04-27 15:59 xiaoA
很好很强大~~但是不是在你说的那个文件夹里面找到的
我的是在如下这个文件里面找到的,但是道理是一个样,问题解决了
D:\Program Files\MyEclipse 7.0M1\eclipse\dropins\myeclipse\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.9.100.zmyeclipse69100200808\data\libraryset\EE_5  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-04-30 09:10 hwp
@xiaoA
我用的是myEclipse 6.0,而你的是myEclipse 7.0.  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-06-06 21:04 雪浪
我也请吃饭....呵呵
开玩笑,不过也真谢谢!!  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-06-09 10:55 jialix
还真是,谢谢啊,厉害!!  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-08-17 18:22 gangbener
跪谢。

so强大!!!  回复  更多评论
  

# re: Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 2010-09-02 16:30 yixiong
thx  回复  更多评论
  


技术专题:
jQuery   Android   iPad

博客园  博问  IT新闻  学英语  Java程序员招聘
标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录      
每天10分钟,轻松学英语


网站导航: