[Tilesathome] Experimental Batik Support
Alexander Wright
silverfish at wright-family.me.uk
Thu Nov 15 11:26:25 GMT 2007
On Wednesday 14 November 2007 21:02:51 Alexander Wright wrote:
> On Wednesday 14 November 2007 20:45:55 Brent Easton wrote:
> > Hi Gert, Alexander,
> >
> > I wait with baited breath for your results ;)
>
> Still getting errors with regard to SAXParser. I've tried Sun Java 1.5 and
> 1.6 with no joy.
Right. Further information, and a solution!
I'm running Gentoo Linux and Batik 1.6. Gentoo uses a wrapper script to add
the classpath correctly (the CLASSPATH variable is ignored when you use -jar
on the command line). Thus you need to modify tilesGen.pl:
--- tilesGen.pl (revision 5507)
+++ tilesGen.pl (working copy)
@@ -1026,11 +1026,8 @@
my $Width = $X2 - $X1;
my $Height = $Y2 - $Y1;
- $Cmd = sprintf("%s%s java -Xms256M -Xmx%s -jar %s -w %d -h %d -a %f,
%f,%f,%f -m image/png -d \"%s\" \"%s%s\" > %s",
- $Config{i18n} ? "LC_ALL=C " : "",
+ $Cmd = sprintf("%s /usr/bin/batik-rasterizer-1.6 -w %d -h %d -a %f,
%f,%f,%f -m image/png -d \"%s\" \"%s%s\" > %s",
$Config{Niceness},
- $Config{BatikJVMSize},
- $Config{BatikPath},
$SizeX,
$SizeY,
$Left,$Top,$Width,$Height,
Note: This is rather a hack, as I've hardcoded the Batik path, but it works
for me (TM). :-)
Alex.
More information about the Tilesathome
mailing list