且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

java.lang.NoClassDefFoundError:javax / mail / Authenticator,怎么回事?

更新时间:2022-04-18 01:49:03

你需要在WEB-INF / lib目录中添加两个jar或者您的webapp(或服务器的lib目录):

You need to add two jars into the WEB-INF/lib directory or your webapp (or lib directory of the server):


  • mail.jar - 包含实际的smtp implmentation

  • activation.jar - 需要mail.jar

  • mail.jar - contains the actual smtp implmentation
  • activation.jar - needed by mail.jar