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

JAR manifest file format not documented clearly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.0
    • 1.2.0
    • tools
    • jar
    • beta
    • x86, sparc
    • solaris_2.6, windows_nt


      arthur.frechette@East 1998-02-06

      A blank line in the manifest file between manifest attribute entries caused
      the manifest file to not be interpreted or parsed correctly thereby causing
      the program to fail loading classes properly.

      :::::::::::
      manifest.mf
      :::::::::::
      Manifest-Version: 1.0
      Main-Class: T0

      Class-Path: ../../ext/e1/e1.jar ../../ext/e2/e2.jar

      or

      :::::::::::
      manifest.mf
      :::::::::::
      Manifest-Version: 1.0

      Main-Class: T0
      Class-Path: ../../ext/e1/e1.jar ../../ext/e2/e2.jar

      or

      :::::::::::
      manifest.mf
      :::::::::::
      Manifest-Version: 1.0

      Main-Class: T0

      Class-Path: ../../ext/e1/e1.jar ../../ext/e2/e2.jar

      causes this

       adfsys 2847 =>make run
      java -classpath /js/files/JDK1.2_latest/solaris/lib/classes.zip:../.. sun.misc.Launcher -verbose -jar T0.jar
      Could not open JAR file: T0.jar
      *** Error code 1
      make: Fatal error: Command failed for target `run'


      The manifest below is the only one that works.

      :::::::::::
      manifest.mf
      :::::::::::
      Manifest-Version: 1.0
      Main-Class: T0
      Class-Path: ../../ext/e1/e1.jar ../../ext/e2/e2.jar

      No blank line between attribute entries.

            zlisunw Zhenghua Li (Inactive)
            afrechet Art Frechette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: