[Tilesathome] Batik jars

Alan Millar am12 at bolis.com
Tue Sep 1 00:15:53 BST 2009


I wanted to try Batik rendering instead of Inkscape.  This is on Ubuntu
9.04, which appears to have Batik version 1.7.  I installed libbatik-java,
and changed my tilesAtHome.conf to use BatikAgent instead of Inkscape.

tilesGen.pl crashed with a java stack dump, telling me it could not find
SVGDocument.  I read that SVGDocument.class has moved to a new jar in
Batik 1.7, and it should be in xml-apis-ext.jar

I found this was true in my files.  The only way I found to fix it,
though, was to change the code in lib/SVG/Rasterize/Engine/Batik.pm to add
this jar file name.

===================================================================
--- Batik.pm    (revision 17410)
+++ Batik.pm    (working copy)
@@ -151,6 +151,7 @@
     $self->jar_searchpaths(@extended_default_jar_searchpaths);
     $self->jar_list([
         'xercesImpl.jar',
+        'xml-apis-ext.jar',
         'batik.jar'
         ]);
===================================================================

I could not find any references to a configuration entry for the Batik jar
list.  Is there one that I just missed, or does the code really need to be
patched?

- Alan






More information about the Tilesathome mailing list