RFR 8189777: jlink --module-path default value and automatic addition of $JAVA_HOME/jmods if java.base is missing

mandy chung mandy.chung at oracle.com
Mon Oct 23 21:27:44 UTC 2017


On 10/23/17 3:37 AM, Sundararajan Athijegannathan wrote:
> Updated for getDefaultModulePath. moduleFinder uses three instance 
> fields - modulepaths, limitmods and modules. We may have to pass all 
> to the static method...
>
> http://cr.openjdk.java.net/~sundar/8189777/webrev.01 

What happens to this command?
    $ jlink --add-modules ALL-MODULE-PATH -output image

It will use the default module path but there is no root module.

On 10/23/17 7:33 AM, Alan Bateman wrote:
>
> The other alternative is to create the ModuleFinder before creating 
> the JlinkConfiguration, that might be clearer overall.

I like the idea passing ModuleFinder to JlinkConfiguration constructor 
which is cleaner.

Mandy


More information about the jigsaw-dev mailing list