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

jpackage looks for main module in current dir when there is no module-path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 17
    • 15, 16, 17
    • tools
    • b13
    • generic
    • generic

      When the main module is in the given --runtime-image, so no --module-path option is used even though --module option is used, LauncherData.createModule() will call a ModuleFinder with a path such as [, runtime\lib]
      The empty string followed by comma causes ModuleFinder to look in the current dir.
      If there is a non-modular jar in the current directory, (such as hello.jar) you can get an exception:
      jdk.jpackage.internal.ConfigException: java.lang.module.FindException: Unable to derive module descriptor for hello.jar

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: