Does jlink work on exploded build?
mandy.chung at oracle.com
Wed Jan 11 00:44:20 UTC 2017
Correct, in your case, it won’t work.
> On Jan 10, 2017, at 4:09 PM, Wang Weijun <weijun.wang at oracle.com> wrote:
> Ah, when I said exploded build, I meant jdk/modules/java/base/.../*.classes. There is no native files there so I guess not supported.
>> On Jan 11, 2560 BE, at 1:12 AM, Mandy Chung <mandy.chung at oracle.com> wrote:
>>> On Jan 10, 2017, at 6:29 AM, Wang Weijun <weijun.wang at oracle.com> wrote:
>>> $ jlink --module-path ../build/windows-x64-debug/jdk/modules/ --add-modules jdk.jartool --output /tmp/jartool
>>> Error: java.lang.RuntimeException: Module jdk.jartool's descriptor returns inconsistent package set
>> jlink in the exploded build works if you specify the proper module path. The module path should be `images/jmods` where JMOD files are found because java.base and jdk.jartools contains more than classes such as executables, shared libraries, etc.
More information about the jigsaw-dev