jlink RuntimeException: descriptor returns inconsistent package set

Jim Connors james.connors at oracle.com
Fri Feb 10 15:49:38 UTC 2017


On 2/10/2017 2:05 AM, Alan Bateman wrote:
> I think I need to see the JAR file to explain this. My guess is that 
> it has the ModulePackages class file attribute with the non-exported 
> packages rather than all packages (the ModulePackages changed a while 
> back to include all packages). I can't be sure of course but we do 
> need to improve the error message from jlink when it finds the 
> mismatch with the JAR file contents.
>

In addition to sending you the jar files on the side, I went ahead and 
extracted the contents of the jar files to a directory.  It is organized 
as follows:

com.jtconnors.socket/
     module-info.class
         com/
             jtconnors/
                 socket/
                 class files
                     test/
                         class files

scoreboard/
     module-info.class
     scoreboard/
         common/
         fx2/
         images/
         util/
         ...

In this scenario, the same error appears:

C:\tmp\scratch>jlink --module-path .;\Users\jtconnor\jdk-9\jmods 
--add-modules scoreboard --output reducedImage --compress=2 --strip-debug
Error: java.lang.RuntimeException: Module scoreboard's descriptor 
returns inconsistent package set

-- Jim C



More information about the jigsaw-dev mailing list