Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212228

jlink (with all modules) fails to create custom image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 11
    • tools
    • None
    • generic
    • windows

      Trying to create custom image with jlink with all the jmods available in the JDK11 fails.

      steps to reproduce
      1. download extract jdk11 windows build
      2. go to jdk-11\bin
      3. jlink.exe -p ..\jmods\ --add-modules "ALL THE MODULES present in ..\jmods comma seperated" --ouput .\CustomJDK11

      Expected : CustomJDK11 image should be created
      Actual :
      Error: Module jdk.jlink.jmod not found
      Even though the module 'jdk.jlink.jmod' is present in the ..\jmods\ directory.
      Tried removing the 'jdk.jlink.jmod' from the --add-modules, then it fails with
      Error: Module jdk.jstatd.jmod not found
      the error goes on and on with other modules . Tried removing these below listed modules in the list
      jdk.jlink.jmod,
      jdk.jstatd.jmod,
      jdk.security.jgss.jmod,
      jdk.javadoc.jmod,
      jdk.jcmd.jmod,
      java.desktop.jmod,
      jdk.internal.vm.ci.jmod,
      java.scripting.jmod,
      jdk.crypto.cryptoki.jmod,
      jdk.naming.dns.jmod,
      jdk.security.auth.jmod,
      jdk.hotspot.agent.jmod,
      jdk.accessibility.jmod,
      jdk.localedata.jmod,

      But no success in generating the custom image.

            Unassigned Unassigned
            ghb Guru Hb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: