I am developing an online conference system based on Java EE framework using NetBeans for my school. My project contains the Java EE library which has javax.mail
package.
I use the javax.mail.authenticator
class in my code and everything seems to be OK. However, when I run the project and try to send email with this system, problem occurs, saying it can not find class javax.mail.authenticator
.
Then I put the files mail.jar and authenticator.jar in folder WEB-INF/lib, after that it can send email correctly. I don't know why it can not find the class authenticator and why this two jar files should be put there?
PS: I use Tomcat 6 as my web server.