Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-13 Thread Jim Connors
As a postscript to this entire thread, for what it's worth, here's a blog entry which presents a recipe for adding the necessary customization to NetBeans to enable it to automatically build JDK9 runtime images as part of the build process. Automating the Creation of JDK9 Reduced Runtime

Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-10 Thread Alan Bateman
On 10/02/2017 16:21, Jim Connors wrote: Jim Clarke, cc:ed on these emails just did exactly that and didn't have any success with his attempt. I will also try the same thing. I'm confident it should work if you use the JDK 9 `jar` tool. We'll get the jlink bug fixed in the mean-time.

Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-10 Thread Jim Connors
Can you re-create the JAR file for scoreboard with JDK 9's jar tool as a workaround for now? The reason you don't see the issue with com.jtconnors.socket is that it doesn't have any concealed packages and that is where jlink is tripping up. -Alan Jim Clarke, cc:ed on these emails just

Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-10 Thread Alan Bateman
On 10/02/2017 01:47, Jim Connors wrote: : 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. Can you re-create the JAR file for scoreboard with JDK 9's jar tool as a

Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-10 Thread Jim Connors
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

Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-09 Thread Alan Bateman
On 10/02/2017 01:47, Jim Connors wrote: 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:

Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-09 Thread Jim Connors
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

Re: jlink RuntimeException: descriptor returns inconsistent package set

2017-02-09 Thread Alan Bateman
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

jlink RuntimeException: descriptor returns inconsistent package set

2017-02-09 Thread Jim Connors
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,