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

--main-class should be inferred from jar manifest or module-info

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: internal
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      reported against jpackage EA build 2:
      "It fails if I didn't specify --class option even the manifest of the main JAR has Main-Class attribute. Is that expected? Should it be derived from the manifest or the module-info.class if not specified"
      Code exists to derive the main-class if not specified with --main-class. This needs to be tested and resolved for:
      1.) --main-jar used with non-modular jars.
      2.) --main-jar used with modular jars
      3.) --module used with module path pointing to modular jar
      4.) --module used with module path pointing to exploded module.

        Attachments

          Activity

            People

            • Assignee:
              herrick Andy Herrick
              Reporter:
              herrick Andy Herrick
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: