EVALUATION
The current default implementation of rmic is still based on the so-called "oldjavac" libraries, which do not support JAR manifest Class-Path entries. If all of the other JDK tools now support JAR manifest Class-Path entries for JAR files in their application class paths, then it does seem like a bug that rmic does not do so as well.
The implementation of rmic enabled by the "-Xnew" option, which is based on the current javac implementation (through javadoc), inherits javac's support for JAR manifest Class-Path entries, so this bug will be fixed at the latest when that implementation becomes the default (see 4819896).
|
WORK AROUND
If neither the "-idl" nor the "-iiop" options to rmic need to be used (i.e. rmic is being used to generate RMI/JRMP stub classes), then use "-Xnew" as the first option to rmic. That option enables a newer internal implementation of rmic, which is based on the current javac implementation (through javadoc), and thus it implicitly inherits javac's support for JAR manifest Class-Path entries. Unfortunately, this newer implementation does not yet support the CORBA (RMI/IIOP) modes of operation (see 4911536 & 4819896).
|