Where do modules go in jlink images?

forax at univ-mlv.fr forax at univ-mlv.fr
Sun Jan 7 13:38:19 UTC 2018


----- Mail original -----
> De: "Nicolai Parlog" <nipa at codefx.org>
> À: forax at univ-mlv.fr
> Cc: "jigsaw-dev" <jigsaw-dev at openjdk.java.net>
> Envoyé: Dimanche 7 Janvier 2018 14:26:08
> Objet: Re: Where do modules go in jlink images?

> Hi Remi,
> 
> but the exact same thing happens when the JDK is linked with jlink,
> right? I just now see that the native binaries from the jmod archives
> are also present in lib/.
> 
> So does that really mean that the jmods folder plays no role for the
> running JVM? 

yes

> What is it there for?

make jlink working :)
the transformation done by jlink is not reversible.

> 
> so long ... Nicolai

Rémi

> 
> 
> 
> On 07.01.2018 14:15, Remi Forax wrote:
>> All classes are merged in the file named 'modules' and the native
>> libraries are extracted from the jmods and put in the lib folder,
>> because jlink create an image for a specific architecture/OS.
>> 
>> cheers, Rémi
>> 
>> ----- Mail original -----
>>> De: "Nicolai Parlog" <nipa at codefx.org> À: "jigsaw-dev"
>>> <jigsaw-dev at openjdk.java.net> Envoyé: Dimanche 7 Janvier 2018
>>> 13:57:51 Objet: Where do modules go in jlink images?
>> 
>>> Hi!
>>> 
>>> Another question about jlink (guess what chapter I'm working on
>>> ;) ). I've tried to find out where jlink puts the content of the
>>> jmods folder, but hit a wall.
>>> 
>>> I created a full runtime image with jlink and diffed the file
>>> trees (including disk usage), but all that got me was that my
>>> image doesn't contain bin/jmc, jmods, lib/misssioncontrol,
>>> lib/src.zip, and lib/plugin-legacy.jar - all of that is expected,
>>> but where are the class files from the jmod archives?
>>> 
>>> Now I wonder, whether these are just ornamental - does
>>> lib/modules contain all the bytecode? I'm confused.
>>> 
>>> so long ... Nicolai
>>> 
>>> 
>>> 
>>> --
>>> 
>>> PGP Key:
>>> http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509
>>>
>>>
>>> 
> Web:
>>> http://codefx.org a blog about software development
>>> https://www.sitepoint.com/java high-quality Java/JVM content
>>> http://do-foss.de Free and Open Source Software for the City of
>>> Dortmund
>>> 
>>> Twitter: https://twitter.com/nipafx
>> 
> 
> --
> 
> PGP Key:
>    http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509
> 
> Web:
>    http://codefx.org
>        a blog about software development
>    https://www.sitepoint.com/java
>        high-quality Java/JVM content
>    http://do-foss.de
>        Free and Open Source Software for the City of Dortmund
> 
> Twitter:
>     https://twitter.com/nipafx


More information about the jigsaw-dev mailing list