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: 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.

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.

-Alan

Reply via email to