Exception in thread "main":com/sun/mail/util/LineInputStream 经过摸索,问题终于解决了。大家MyEclipse6.5的javaee.jar中的mail包与JavaMail包有冲突。解决:在MyEclipse目录下,找javaee.jar包,用WinRar打包,删除里面的mail目录和activation目录然后加入mail.jar和activition.jar