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

JAR Index generates absolute paths instead of relative ones

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
      jar
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: jk109818 Date: 12/12/2001


      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)


      Create a jar file test.jar with a Class-Path attribute in the MANIFEST.MF file
      like:

         Class-Path: jini-ext.jar

      execute: jar -i test.jar

      Have a look in the generated INDEX.LIST and you will see that the path to the
      dependent jar file has become absolute, meaning it won't work on other
      platforms, like I discovered

      /home/marbro/workspace/project/unimatrix/lib/jini-ext.jar
      com/sun/jini/constants
      com/sun/jini/lookup/entry
      com/sun/jini/thread
      ...

      IMHO the path should be relative to the main jar file, like they are in the
      Class-Path attribute.
      (Review ID: 136196)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ilittlesunw Ian Little (Inactive)
                Reporter:
                jkimsunw Jeffrey Kim (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: