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)
======================================================================
- duplicates
-
JDK-4490798 jar -i <path>/foo.jar puts <path> in jar names in index
- Closed