Classes in com.sun.mail cannot be found

  • Share
  • Share

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.

JAVA-Mail ,

  1. admin
    March 20th, 2009 at 10:28 | #1

    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.

  1. No trackbacks yet.