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

jar -i <path>/foo.jar puts <path> in jar names in index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.3.1, 1.4.0
    • tools
    • jar
    • generic
    • generic

      If you do
          jar -i <path>/foo.jar
      instead of
          cd <path>
          jar -i foo.jar
      the names of the jar files in the generated index are all prefixed by <path>, including the jars that were specified in relative form in Class-Path. This breaks the operation of URLClassLoader: URLClassPath attempts to construct URLs from the names in the index, relative to the real base URL, and the result is nonsense paths that reflect the original build tree rather than the actual runtime deployment, with the end effect that the index is ignored.

            Unassigned Unassigned
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: