javax.activation.DataSource class not found

Alan Bateman Alan.Bateman at
Mon Nov 28 15:38:40 UTC 2016

On 28/11/2016 15:32, Alan Snyder wrote:

> Trying to create a javax.mail.internet.MimeMessage, I get this error in release 144:
> java.lang.ClassNotFoundException: javax.activation.DataSource
> 	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
> 	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
> 	at java.base/java.lang.ClassLoader.loadClass(
> Is this a known bug?
> I cannot tell if it relates to JDK-8160373.
The modules owned by Java EE are not resolved by defaulted in JDK 9, see 
the section on "Root Modules" in JEP 261 [1] for more details on that, 
also the "Risks and Assumptions" for more of the rational.

In this case, you can run with `--add-modules java.activation` or else 
put activation.jar on the class path.



More information about the jdk9-dev mailing list