jmod and modular MR jars
Alan Bateman
Alan.Bateman at oracle.com
Fri Oct 13 19:45:21 UTC 2017
On 13/10/2017 20:15, Ryan Schmitt wrote:
> :
> In this case, I am starting with a modular MR JAR file, which I have placed on the classpath of jmod. This works when I supply a modular non-MR jar instead, where the module-info.class file is in the root of the jar and not the META-INF/versions area. My goal here is to convert a modular MR jar into a JMOD file, which is then to be linked with other JMOD files in a fully modularized application.
>
> I realize that different tools treat MR jars in different ways, so I was wondering if this is deliberate in the case of the jmod tool, and if so, why.
The module path that you specify to `jlink` may contain modules that are
packaged as modular JAR, no need to create a JMOD file when your module
doesn't have native libraries.
-Alan.
More information about the jdk9-dev
mailing list