xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mcc.id.au>
Subject Re: Jar dependency graph
Date Fri, 02 May 2008 05:36:35 GMT
Hi Keywan.

Keywan Najafi Tonekaboni:
> i couldnt find batik-anim.jar, batik-codec, xalan.jar and
> xml-apis-ext.jar in the dependency graph on 
> http://xmlgraphics.apache.org/batik/install.html#dependencyGraph

Yes, that dependency graph is quite out of date, unfortunately.

> I am sure I need xml-apis-ext.jar, but what with the other libs?
> I only use batik-swing and batik-transcoder and want only ship the
> necessary jars, to have a small file.

I hacked org.apache.batik.util.ClassFileUtilities to dump out a list of
jar dependencies a few months ago in the hope of making a new version of
the diagram, but I didn’t get around to that.  Still, you can check out
the dependency list:

  jet:~/work/svn/batik/trunk $ java -classpath classes:resources:lib/js.jar:lib/pdf-transcoder.jar:lib/xalan-2.6.0.jar:lib/xerces_2_5_0.jar:lib/xml-apis.jar:lib/xml-apis-ext.jar
org.apache.batik.util.ClassFileUtilities
  1050,batik-1.8pre/lib/xalan-2.6.0.jar,batik-1.8pre/lib/xml-apis.jar
  562,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/xml-apis.jar
  543,batik-1.8pre/lib/xerces_2_5_0.jar,batik-1.8pre/lib/xml-apis.jar
  517,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/batik-dom.jar
  295,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/xml-apis-ext.jar
  266,batik-1.8pre/lib/batik-dom.jar,batik-1.8pre/lib/xml-apis.jar
  249,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-gvt.jar
  224,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-svg-dom.jar
  215,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-ext.jar
  213,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/xml-apis.jar
  172,batik-1.8pre/lib/batik-css.jar,batik-1.8pre/lib/xml-apis-ext.jar
  162,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/xml-apis.jar
  156,batik-1.8pre/lib/batik-css.jar,batik-1.8pre/lib/xml-apis.jar
  140,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-awt-util.jar
  140,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/xml-apis.jar
  130,batik-1.8pre/lib/batik-script.jar,batik-1.8pre/lib/js.jar
  127,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-dom.jar
  113,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-util.jar
  105,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-bridge.jar
  92,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/batik-css.jar
  92,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-parser.jar
  91,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-css.jar
  88,batik-1.8pre/lib/batik-svggen.jar,batik-1.8pre/lib/xml-apis.jar
  81,batik-1.8pre/lib/xml-apis-ext.jar,batik-1.8pre/lib/xml-apis.jar
  77,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/batik-util.jar
  74,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/xml-apis-ext.jar
  72,batik-1.8pre/lib/batik-codec.jar,batik-1.8pre/lib/batik-awt-util.jar
  71,batik-1.8pre/lib/batik-gvt.jar,batik-1.8pre/lib/batik-awt-util.jar
  70,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-util.jar
  66,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/batik-parser.jar
  66,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-util.jar
  62,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-gui-util.jar
  60,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-anim.jar
  59,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-gvt.jar
  56,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-dom.jar
  47,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-swing.jar
  41,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-bridge.jar
  40,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-script.jar
  38,batik-1.8pre/batik-svgpp.jar,batik-1.8pre/lib/batik-transcoder.jar
  38,batik-1.8pre/lib/batik-svggen.jar,batik-1.8pre/lib/batik-awt-util.jar
  37,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/batik-svg-dom.jar
  36,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/batik-gvt.jar
  35,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/batik-bridge.jar
  31,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/xml-apis.jar
  31,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-ext.jar
  29,batik-1.8pre/lib/batik-dom.jar,batik-1.8pre/lib/batik-ext.jar
  29,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-transcoder.jar
  28,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-gvt.jar
  26,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/batik-ext.jar
  26,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/batik-transcoder.jar
  25,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-dom.jar
  24,batik-1.8pre/lib/batik-css.jar,batik-1.8pre/lib/batik-util.jar
  24,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/xml-apis-ext.jar
  24,batik-1.8pre/lib/xml-apis-ext.jar,batik-1.8pre/lib/batik-ext.jar
  24,batik-1.8pre/lib/batik-codec.jar,batik-1.8pre/lib/batik-transcoder.jar
  23,batik-1.8pre/lib/batik-parser.jar,batik-1.8pre/lib/batik-util.jar
  22,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/xml-apis.jar
  22,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-bridge.jar
  21,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/batik-anim.jar
  21,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/xml-apis-ext.jar
  20,batik-1.8pre/lib/batik-gui-util.jar,batik-1.8pre/lib/batik-util.jar
  20,batik-1.8pre/lib/batik-awt-util.jar,batik-1.8pre/lib/batik-util.jar
  18,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-bridge.jar
  18,batik-1.8pre/lib/batik-css.jar,batik-1.8pre/lib/batik-ext.jar
  16,batik-1.8pre/lib/batik-dom.jar,batik-1.8pre/lib/batik-util.jar
  15,batik-1.8pre/lib/xerces_2_5_0.jar,batik-1.8pre/lib/batik-ext.jar
  15,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-gvt.jar
  13,batik-1.8pre/lib/batik-script.jar,batik-1.8pre/lib/xml-apis.jar
  13,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-awt-util.jar
  12,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-ext.jar
  12,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/xml-apis.jar
  12,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-awt-util.jar
  12,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-svg-dom.jar
  12,batik-1.8pre/batik-rasterizer.jar,batik-1.8pre/lib/batik-transcoder.jar
  11,batik-1.8pre/lib/batik-script.jar,batik-1.8pre/lib/batik-ext.jar
  10,batik-1.8pre/lib/batik-ext.jar,batik-1.8pre/lib/xml-apis.jar
  10,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/xml-apis.jar
  10,batik-1.8pre/lib/batik-codec.jar,batik-1.8pre/lib/xml-apis.jar
  10,batik-1.8pre/lib/batik-svggen.jar,batik-1.8pre/lib/batik-util.jar
  9,batik-1.8pre/batik-svgpp.jar,batik-1.8pre/lib/batik-util.jar
  9,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-awt-util.jar
  9,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/batik-ext.jar
  9,batik-1.8pre/lib/batik-xml.jar,batik-1.8pre/lib/batik-util.jar
  8,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-gvt.jar
  8,batik-1.8pre/batik-slideshow.jar,batik-1.8pre/lib/batik-bridge.jar
  8,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/xalan-2.6.0.jar
  8,batik-1.8pre/lib/batik-gvt.jar,batik-1.8pre/lib/batik-util.jar
  7,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/batik-parser.jar
  7,batik-1.8pre/lib/batik-dom.jar,batik-1.8pre/lib/batik-css.jar
  7,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/xml-apis-ext.jar
  6,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/batik-awt-util.jar
  6,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/batik-util.jar
  6,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-dom.jar
  6,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-parser.jar
  6,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/xml-apis-ext.jar
  6,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/batik-awt-util.jar
  6,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/batik-parser.jar
  6,batik-1.8pre/lib/xml-apis.jar,batik-1.8pre/lib/batik-ext.jar
  5,batik-1.8pre/lib/js.jar,batik-1.8pre/lib/xml-apis.jar
  5,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-util.jar
  5,batik-1.8pre/lib/batik-dom.jar,batik-1.8pre/lib/xalan-2.6.0.jar
  5,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/batik-svg-dom.jar
  5,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-svg-dom.jar
  4,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-svg-dom.jar
  4,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-dom.jar
  4,batik-1.8pre/batik-rasterizer.jar,batik-1.8pre/lib/batik-util.jar
  4,batik-1.8pre/batik-rasterizer.jar,batik-1.8pre/lib/batik-parser.jar
  4,batik-1.8pre/lib/batik-codec.jar,batik-1.8pre/lib/batik-bridge.jar
  3,batik-1.8pre/lib/xalan-2.6.0.jar,batik-1.8pre/lib/xerces_2_5_0.jar
  3,batik-1.8pre/lib/xalan-2.6.0.jar,batik-1.8pre/lib/batik-ext.jar
  3,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-svggen.jar
  3,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/batik-xml.jar
  3,batik-1.8pre/batik-slideshow.jar,batik-1.8pre/lib/batik-gvt.jar
  3,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/batik-dom.jar
  3,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-svg-dom.jar
  3,batik-1.8pre/lib/batik-script.jar,batik-1.8pre/lib/batik-util.jar
  3,batik-1.8pre/lib/batik-dom.jar,batik-1.8pre/lib/batik-xml.jar
  2,batik-1.8pre/batik-slideshow.jar,batik-1.8pre/lib/xml-apis-ext.jar
  2,batik-1.8pre/batik-slideshow.jar,batik-1.8pre/lib/xml-apis.jar
  2,batik-1.8pre/lib/batik-anim.jar,batik-1.8pre/lib/xml-apis-ext.jar
  2,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-gui-util.jar
  2,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-css.jar
  2,batik-1.8pre/lib/batik-script.jar,batik-1.8pre/lib/batik-svg-dom.jar
  2,batik-1.8pre/lib/batik-script.jar,batik-1.8pre/lib/batik-dom.jar
  2,batik-1.8pre/lib/batik-dom.jar,batik-1.8pre/lib/xml-apis-ext.jar
  2,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-util.jar
  2,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-css.jar
  2,batik-1.8pre/lib/batik-gvt.jar,batik-1.8pre/lib/batik-bridge.jar
  2,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/xalan-2.6.0.jar
  2,batik-1.8pre/lib/pdf-transcoder.jar,batik-1.8pre/lib/batik-util.jar
  2,batik-1.8pre/lib/batik-parser.jar,batik-1.8pre/lib/batik-xml.jar
  1,batik-1.8pre/lib/batik-gui-util.jar,batik-1.8pre/lib/batik-xml.jar
  1,batik-1.8pre/lib/batik-svg-dom.jar,batik-1.8pre/lib/batik-awt-util.jar
  1,batik-1.8pre/lib/batik-transcoder.jar,batik-1.8pre/lib/xml-apis-ext.jar
  1,batik-1.8pre/batik-ttf2svg.jar,batik-1.8pre/lib/batik-svggen.jar
  1,batik-1.8pre/lib/batik-bridge.jar,batik-1.8pre/lib/batik-xml.jar
  1,batik-1.8pre/lib/batik-swing.jar,batik-1.8pre/lib/batik-awt-util.jar
  1,batik-1.8pre/lib/batik-script.jar,batik-1.8pre/lib/batik-bridge.jar
  1,batik-1.8pre/lib/batik-extension.jar,batik-1.8pre/lib/batik-ext.jar
  1,batik-1.8pre/lib/batik-gvt.jar,batik-1.8pre/lib/xml-apis.jar
  1,batik-1.8pre/lib/batik-codec.jar,batik-1.8pre/lib/batik-util.jar
  1,batik-1.8pre/lib/batik-parser.jar,batik-1.8pre/lib/batik-awt-util.jar
  1,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-xml.jar
  1,batik-1.8pre/batik-squiggle.jar,batik-1.8pre/lib/batik-script.jar

The format of each line is:

  number-of-dependencies,jar,dependency

So if you look up the lines for batik-swing and batik-transcoder, then
do a transitive closure of the dependency links, you should get a list
of all jars you need.

Additionally, if you don’t need DOM Level 3 XPath support, then you can
leave out xalan.  Note that xerces and batik-codec are used indirectly
(with Class.loadClass()) and thus don’t appear in the dependencies.  I
reckon you can leave out xerces on a recent JRE.  Probably you want to
leave in batik-codec if you are transcoding to JPEG/PNG.

-- 
Cameron McCormack ≝ http://mcc.id.au/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message