FOP 0.20.5 came out before JDK 1.5. That's why you get errors. If you compile FOP with JDK 1.3.1 or 1.4.2 it will build just fine. Alternatively, you can download the maintenance branch of FOP directly from Subversion [1]. The code there supports building under JDK 1.5 if I'm not mistaken.
The alternative is to upgrade to FOP 0.91beta, of course. [1] svn co http://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain/ On 08.02.2006 23:21:02 Sir Strongbad wrote: > I took your advice and and downloaded the source distribution. When I > ran the build file, i got 30 errors relating to the "enum" reserved > word being used. After a global search and replace, I am left with > one error. > > compile: > [echo] Compiling the sources > [javac] Compiling 746 source files to C:\Program > Files\Apache\fop-0.20.5\build\classes > [javac] This version of java does not support the classic > compiler; upgrading to modern > [javac] C:\Program > Files\Apache\fop-0.20.5\build\src\org\apache\fop\svg\PDFGraphics2D.java:1242: > org.apache.fop.svg.PDFGraphics2D.PDFGraphicsConfi > guration is not abstract and does not override abstract method > createCompatibleVolatileImage(int,int,int) in > java.awt.GraphicsConfiguration > [javac] static class PDFGraphicsConfiguration extends > GraphicsConfiguration { > [javac] ^ > [javac] Note: * uses or overrides a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 1 error > > What am I missing here? Thanks a million in advance... > > > I'm being dumb. Ant is only bundled in the source distribution. In the > > binary distribution you don't need it. Normally. Only if you want to > > build the servlet example, you need it. I guess Sir Strongbad should > > download the source distribution and go from there. > > > On 04.02.2006 13:41:57 Paul Vinkenoog wrote: > > > Hello Jeremias, > > > > > > > Something doesn't feel right here. FOP 0.20.5 DOES bundle Ant 1.5.1 > > > >(found in the lib directory). > > > > > > That's strange - I have a FOP download here (fop-0.20.5-bin.zip) and > > > there's definitely no Ant inside. > > > > > > Afaict I made the download on 10 Jun 2004. All the files are > > > timestamped 15 Jul 2003 4:04. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
