You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jose Hernandez <jh...@algorithmics.com> on 2002/09/10 18:36:09 UTC

RE: building FOP

Yes ...

This is a release note ...

Check this ... http://xml.apache.org/fop/relnotes.html

Building under JDK 1.4: You need to add a method in
src/org/apache/fop/svg/PDFGraphics2D.java (search for jdk1.4 and remove the
comments) 


-----Original Message-----
From: Toufic Nehme [mailto:toufic.nehme@canadair.ca]
Sent: Tuesday, September 10, 2002 11:38 a.m.
To: fop-user@xml.apache.org
Subject: building FOP


Hi,
I'm trying to build fop-0.20.4, but I'm getting an error when the
compiler
get to PDFGraphics2D.java.
I'm wondering if any of you had a similar problem ?
I opened a bug report for this but it was closed saying that
"There are instructions for how to build FOP with JDK 1.4 in the
docs in the distribution."
Fine !! but I followed the instructions letter by letter and everything
seems
to be ok, all environment variables are set as per the instructions !
After a build fails I cleaned the previous build before the next try.
I had the same problem on windows NT and windows 2000.
I'm using j2sdk1.4.0_01. there is no other jars ( xerces, batik, etc..)
appearing in my classpath, I'm just using the jars that come with the
distribution.
here are the traces.  I would appreciate any hint. thanks.
------------------------------------------------------------------------

D:\fop-0.20.4>build
Fop Build System
----------------
Building with classpath D:\j2sdk1.4.0_01\lib\tools.jar;D:\j2sdk1.4.0_01
\lib\classes.zip;lib\ant-1.4.1.jar;lib\batik.jar;lib\buildtools.jar;lib\xerc
esI

mpl-2.0.1.jar;lib\xml-apis.jar;lib\xalan-2.3.1.jar;lib\bsf.jar;lib\jimi-

1.0.jar;lib\avalon-framework-cvs-20020315.jar
Starting Ant...
Buildfile: build.xml

init-avail:

init-filters-xalan2:

init:
     [echo] ------------------- Fop 0.20.4 [1999-2002] ----------------

prepare:
     [echo] Preparing the build directories

codegen:
     [echo] Resetting codegen directory
     [echo] Generating the java files from xml resources

prepare-jimi:
     [echo] Jimi library is present. Fop installs jimi support.

prepare-jai:

prepare-trax:
     [echo] JAXP1.1 transforms is present. Installing TRaX support

prepare-src:

compile:
     [echo] Compiling the sources
    [javac] Compiling 311 source files to D:\fop-0.20.4\build\classes
    [javac] Note: sun.tools.javac.Main has been deprecated.
    [javac] D:\fop-
0.20.4\build\src\org\apache\fop\svg\PDFGraphics2D.java:1199: nested
class
org.apache.fop.svg.PDFGraphics2D. PDFGraphicsConfigurat
ion is an abstract class. It can't be instantiated.
    [javac]         return new PDFGraphicsConfiguration();
    [javac]                ^
    [javac] D:\fop-
0.20.4\build\src\org\apache\fop\svg\PDFGraphics2D.java:1206: nested
class
org.apache.fop.svg.PDFGraphics2D. PDFGraphicsConfigurat
ion must be declared abstract. It does not define
java.awt.image.VolatileImage
createCompatibleVolatileImage(int, int) from class java.awt.GraphicsCon
figuration.
    [javac]     static class PDFGraphicsConfiguration extends
GraphicsConfiguration {
    [javac]                  ^
    [javac] 2 errors, 1 warning

BUILD FAILED

D:\fop-0.20.4\build.xml:578: Compile failed, messages should have been
provided.

Total time: 16 seconds
D:\fop-0.20.4>

---------------------------------
Toufic Nehme
Bombardier Aerospace
Tel.  : (514) 855-5001 ext. 51021
---------------------------------


Re: Embedding FOP without using files

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Ing. Atilio Ranzuglia Buteler wrote:
> Hi: I've trying to generate pdf documents without reading
> the original xml document from a file, but i failed
> 
> does anyone knows how to read an xml and pass it to
> XSLTInputHandler without reading it from a file?

Look here:
  http://marc.theaimsgroup.com/?l=fop-user&m=102503859424424&w=2
There should be a few more detailed posts earlier in the archive.

J.Pietschmann


Embedding FOP without using files

Posted by "Ing. Atilio Ranzuglia Buteler" <ar...@yahoo.com>.
Hi: I've trying to generate pdf documents without reading
the original xml document from a file, but i failed

does anyone knows how to read an xml and pass it to
XSLTInputHandler without reading it from a file?

thanks

atilio

__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute