ClassNotFoundException com.sun.mail.util.MailLogger

Опубликовано: 15 Февраль 2025
на канале: mb-techs
740
like

*Error * ClassNotFoundException com.sun.mail.util.MailLogger

Cause: This error is thrown in the Java mail API. When you call the ```Session.getInstance()``` method of this API without the MailLogger dependence in your project.

Solution: Some versions of the Java mail are packaged with this dependence but if it is not found like in this video, please consider adding the dependence manually to your project's pom file or by importing the jar file to your project. Add the dependence below if using maven.
```groupId com.sun.mail ```
```artifactid javax.mail-api```

Feel free to contact me or visit my website www.pestscode.com will be happy to help you. Also you can share errors if the tutorials not working at any time because this is my Job. Support me to subscribe to my YouTube channel.

How to generate Credentials for Google APIs call.    • How to generate credentials for Googl...  
How to download source code from my video tutorials    • How to download source code in my web...  
Upgrade Microsoft Office in lest than 5 seconds    • Upgrade from  Microsoft office 2019 t...