jlink RuntimeException: descriptor returns inconsistent package set
Alan Bateman
Alan.Bateman at oracle.com
Thu Feb 9 21:42:22 UTC 2017
On 09/02/2017 18:42, Jim Connors wrote:
> Trying to create JDK9 runtime image that includes only the necessary
> modules to run a JavaFX program called Scoreboard. It has been
> converted to a JDK9 module called Scoreboard and has dependencies on
> system modules as well as another module called
> com.jtconnors.socket. More details below, this program runs fine
> when invoked with jdk9-ea+155 as follows (Scoreboard.jar and
> com.jtconnors.socket.jar are in the current directory):
>
> C:\tmp\scratch>java --module-path . -m Scoreboard
>
> However when attempting to create the jlink image as follows, this
> error message appears:
>
> 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?
-Alan
More information about the jigsaw-dev
mailing list