jlink and automatic modules
Alan Bateman
Alan.Bateman at oracle.com
Thu Mar 3 15:50:46 UTC 2016
On 03/03/2016 15:38, Sander Mak wrote:
> I'm experimenting with an application that consists of proper modules (with module-info), where one module A requires an automatic module Lib. After creating modular jars for my application modules and running the application with both the application modules and the non-modular Lib-jar on the modulepath, everything works as expected.
>
> Now, I try to create a runtime image for my application using jlink. I add module A using --addmods, and again put both my application modules and the Lib-jar on the --modulepath of jlink. This results in the following error:
>
>> Error: jdk.tools.jlink.plugin.PluginException: module-info.class not found for Lib module
> Is this expected behavior?
>
There isn't currently any support for automatic modules at link-time. We
have an issue tracking it [1] but I think requires thinking through
whether it's the right thing to do.
-Alan
[1] https://bugs.openjdk.java.net/browse/JDK-8130047
More information about the jigsaw-dev
mailing list