Classes in com.sun.mail cannot be found
March 20th, 2009
Applies to:
NA
Description:
Occurs when classes in com.sun.mail cannot be found
Cause:
The most common cause of problems like this is having more than one copy of mail.jar in your CLASSPATH or available to your application.
In addition to checking your CLASSPATH setting, also look for copies in the jre/lib/ext directory of your JDK installation. If you’re running in a web server or application server, it may be providing its own version of mail.jar in one of its directories. You should only have one version of mail.jar available to your application.