I am using JavaMail to do a simple application that sends an email when it finds some files in a directory. I managed to get it worked from Eclipse. I Run the application an
you need to add the smtp.jar file, I also got stuck with the same error after some google search and checking on some older projects I found that I missed this particular jar in my library, I added this jar to the library and found issue fixed.