Need assistance setting up a class to send email, it gets called from the main class

帅比萌擦擦* 提交于 2019-12-04 13:45:04

I'm guessing you probably have just the javaee.jar in your classpath, which has the definitions of the javax.mail.* classes but not the actual implementation.

You should download the javamail api if you dont already have. Found here

You're running with a javaee.jar that does not contain implementations. It's a "stubbed" implementation that is just intended to enable compilation, not execution. This post provides more details. (It's referring to Java EE 5, but the same holds true for 6.)

This post provides explanation and possible solution. You might need to adjust your class path.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!