On Sat, 10 May 2003, Victor Mote wrote:

> Robert P. J. Day wrote:
> 
> >   in my simple docbook document, i've added a couple figures,
> > one with a JPG file (renders nicely), one with a PNG file (does
> > not render at all).  both show up in the .fo file as a
> > fo:external-graphic, so i know *that* part of it is correct.
> >
> >   from what i read in the FOP FAQ, PNG support is provided by
> > either JIMI or JAI.  in fact, i have both installed and their
> > jar files on my java CLASSPATH.
> >
> >   the FAQ graphics entry for JIMI is a bit confusing, since
> > it suggests that i should install the JimiProClasses.zip file
> > (actually, i'm using the jar file) in the directory
> > xml-fop/lib/jimi-1.0.jar.  why is it not sufficient to put
> > the Jimi jar file on my CLASSPATH?
> 
> If you are using a home-grown script that is fine. However, I suspect that
> you are actually using fop.bat or fop.sh at some point.

in fact, i'm using neither fop.sh nor fop.bat.  given the number of
java tools i'm using (xerces, xalan, saxon, etc.), i have a single 
directory where i keep all those jar files, and my CLASSPATH contains
all of the relevant jar files.  so far, it's worked fine, until i
got to FOP.


> If so, then a cursory examination of those scripts will show that FOP
> doesn't use your classpath at all, but builds its own. This is important
> for some of the dependencies (like Batik) that require a very specific
> version number to work correctly with FOP. So, you can hack fop.sh if
> you wish, but if you do, then make sure you hack build.xml as well,
> because otherwise if you try to build FOP from source down the road, you
> will do so without JIMI or JAI support. IMO, it is really much better to
> simply follow the instructions.

while i can appreciate the version dependency issue, this strikes me as
a *really* cumbersome and awkward approach.  i took at look at fop.sh,
and from what i can see after first pass, there should be no difference
between installing JIMI/JAI under the fop directory, or copying their
respective jar files wherever i want, as long as the CLASSPATH is set
correctly.

forcing either JAI or JIMI to be installed under the fop directory
for proper operation is, IMHO, a bad thing.  but perhaps i've just
missed some final step that will make it work.  i'll give it another
shot.

rday


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to