Release Note: jlink --add-modules ALL-MODULE-PATH Requires Explicit --module-path Argument

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P3
    • 24
    • Affects Version/s: 24
    • Component/s: tools
    • generic
    • generic

      Starting with JDK 24, the `jlink --add-modules ALL-MODULE-PATH` option will require users to set the module path via the `--module-path` option. Prior to JDK 24, using `--add-modules ALL-MODULE-PATH` without `--module-path` could be used to create an image with all JDK modules from `$JAVA_HOME/jmods`. In JDK 24, to create an image using `ALL-MODULE-PATH`, it is required to explicitly set `--module-path`. To create an image with all JDK modules, use `jlink --add-modules ALL-MODULE-PATH --module-path $JAVA_HOME/jmods` instead.

            Assignee:
            Severin Gehwolf
            Reporter:
            Severin Gehwolf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: