javax/activation/DataSource NoClassDefFoundError error
Hi, I’m trying to use Jakarta mail to connect to Gmail and retrive email but getting the following exception
Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource
<truncated>
Accepted Answer
You are missing the JavaBeans Activation Framework. Add the following maven dependency:
<!-- https://mvnrepository.com/artifact/javax.activation/activation -->
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>