You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Joel Uckelman <uc...@nomic.net> on 2008/10/17 16:48:32 UTC
why rename xercesImpl.jar to xerces_2_5_0.jar?
I was trying to use the jar tool to make an INDEX.LIST for the main
JAR of my project, and it kept failing with a ZipException. After
some checking, I discovered that the xalan-2.6.0.jar distributed with
Batik 1.7 has the following line in its MANIFEST.MF:
Class-Path: xercesImpl.jar xml-apis.jar
and that I had no xercesImpl.jar on my classpath. Not only that, but
I had no xercesImpl.jar at all. On a hunch, I checked what JARs were
distributed with xerces 2.5.0, and found that they did distribute
a xercesImpl.jar and it's the same as the xerces_2_5_0.jar which comes
with Batik 1.7.
Once I renamed xerces_2_5_0.jar to xercesImpl.jar, the jar tool no
longer complained when I ran 'jar -i' on my main JAR.
Why was this JAR distributed under a different name? In any case, I
think it should either be renamed to xercesImpl.jar, or the manifest
in xalan-2.6.0.jar should be updated to reflect the new name.
--
J.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: why rename xercesImpl.jar to xerces_2_5_0.jar?
Posted by Joel Uckelman <uc...@nomic.net>.
Thus spake "Helder Magalhães":
> > Why was this JAR distributed under a different name? In any case, I
> > think it should either be renamed to , or the manifest
> > in xalan-2.6.0.jar should be updated to reflect the new name.
>
> I believe this may have to do with a naming colision: "xercesImpl.jar"
> started being shipped with Java 1.5 [1] [2], and I remember reading
> something about library conflicts, so this may have been the reason
> why. ;-)
>
> Hope this helps,
>
> Helder Magalh=E3es
>
> [1] http://totheriver.com/learn/xml/xmltutorial.html#7
> [2] http://java.sun.com/j2se/1.5.0/compatibility.html#jaxp1
Thanks for you reply.
Are you sure that xercesImpl.jar is shipped with Java 1.5 on all platforms?
Because we've had some instances of Macs using Java 1.5 not being able to
find it.
Since the name mismatch between the filename and what's listed in the
xalan-2.6.0.jar's MANIFEST.MF causes JAR indexing to fail, and JAR indexing
has some impact on the efficiency of class loading, it would be great if
someone would fix this. The simplest fix would be to alter that manifest
file so that it names only files which ship with Batik.
--
J.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: why rename xercesImpl.jar to xerces_2_5_0.jar?
Posted by Helder Magalhães <he...@gmail.com>.
> Why was this JAR distributed under a different name? In any case, I
> think it should either be renamed to , or the manifest
> in xalan-2.6.0.jar should be updated to reflect the new name.
I believe this may have to do with a naming colision: "xercesImpl.jar"
started being shipped with Java 1.5 [1] [2], and I remember reading
something about library conflicts, so this may have been the reason
why. ;-)
Hope this helps,
Helder Magalhães
[1] http://totheriver.com/learn/xml/xmltutorial.html#7
[2] http://java.sun.com/j2se/1.5.0/compatibility.html#jaxp1
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org