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

Error message when module does not have a ModuleMainClass attribute is confusing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 9, 10
    • tools
    • b01

      Here's the message in launcher.properties:

      java.launcher.module.error1=\
          module {0} does not have a MainClass attribute, use -m <module>/<main-class>

      It should be "ModuleMainClass".

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: