Project Jigsaw: Early-Access Builds available on jdk9.java.net/jigsaw

Rahman USTA rahman.usta.88 at gmail.com
Mon Sep 14 19:11:48 UTC 2015


Yes with "--limitmods com.greetings" the result as I expected. So, why
jlink links all modules without resolving over the root "org.greetings"
module? When jlink links all modules?

Thanks

2015-09-14 20:49 GMT+03:00 Alan Bateman <Alan.Bateman at oracle.com>:

>
>
> On 14/09/2015 17:48, Rahman USTA wrote:
>
> jlink --modulepath %JAVA_HOME%/jmods;mlib --addmods com.greetings --output greetingsapp
>
> After last step, greetingsapp folder generated with all Jigsaw modules.
> How can I include just base mod or other compact mods ?
>
> I assume what you are seeing is service binding with service providers and
> their dependencies getting linked into the image. Can you add "--limitmods
> com.greetings" to the command line and see if that gets you the run-time
> image that you expect?
>
> If you run "greetingsapp/bin/java -listmods" then it will list the names
> of the modules in the generated image.
>
> -Alan
>
>


-- 
Rahman USTA
Istanbul JUG
https://github.com/rahmanusta <http://www.kodcu.com/>


More information about the adoption-discuss mailing list