jlink RuntimeException: descriptor returns inconsistent package set

Jim Connors james.connors at oracle.com
Fri Feb 10 01:47:24 UTC 2017


>>    C:\tmp\scratch>jlink --module-path .;\Users\jtconnor\jdk-9\jmods
>>    --add-modules S
>>    coreboard --output reducedImage --compress=2 --strip-debug
>>    Error: java.lang.RuntimeException: Module Scoreboard's descriptor
>>    returns incons
>>    istent package set
> Jim - is Scoreboard a package module or is it exploded on the file 
> system? If a packaged module is a modular JAR then can you say which 
> version of the `jar` tool was used to create it?

It's a JAR file.  I used an early access build of NetBeans (supporting 
JDK9) to build the JAR.

MANIFEST.MF contents:

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.10.0alpha
    Created-By: 1.8.0_121-b13 (Oracle Corporation)
    X-COMMENT: Main-Class will be added automatically by build
    Main-Class: scoreboard.fx2.Main

Is a JDK9 version of jar required to build the JAR file?  If so, then I 
wonder why the example I furnished, with com.jtconnors.socket, worked?  
It was built the same way.

Thanks,
-- Jim C


More information about the jigsaw-dev mailing list