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

JAR Index generates absolute paths instead of relative ones

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • tools
    • jar
    • generic
    • generic



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: