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

REGRESSION: Main-Class per-entry attribute disables main attribute

XMLWordPrintable

    • b49
    • x86
    • windows_xp

      My manifest file in the jar file has the following entries:

      Main-Class: MyMainClass

      Name: com/sun/star/Loader.class
      Main-Class: MyClass

      If I run 'java -jar myjarfile.jar', then the main method of MyClass is started instead of the
      main method of MyMainClass. Probably it's a bad idea to name the com/sun/star/Loader.class entry
      attribute also Main-Class, but this worked in Java 1.4, but doesn't work in Java 1.5 beta.

      Please adjust the priority and severity of this bug accordingly.
      ###@###.### 2004-03-23

            jkowalsksunw Joseph Kowalski (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: