[opencms-dev] Compile Question
Uwe Heldt
uweheldt at gmx.de
Tue Jul 24 11:58:58 CEST 2001
Hi Mike,
I think the methods you are using don't exist in the current fop version. You
must use the new methods. Take a look at my source:
Driver driver = new Driver();
driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer", version);
driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
driver.setOutputStream(new FileOutputStream(fPdfFile));
driver.buildFOTree(parser, fileInputSource(fFoFile));
driver.format();
driver.render();
Regards Uwe
Mike LaPaglia schrieb:
> I am compiling in Win 2000, and getting a method un resolved and was
> wondering if anyone could perhaps clue me in to a class library i may be
> missing.
> I have had no trouble compiling FOP so I am really confused! Any help is
> appreciated. I am rater new to Java so my experience base is small.
>
> -Mike
>
> [javac]
> C:\OpenCMS\opencms\src\com\opencms\launcher\CmsPdfLauncher.java:146: cannot
> resolve symbol
> [javac] symbol : method setWriter (java.io.PrintWriter)
> [javac] location: class org.apache.fop.apps.Driver
> [javac] driver.setWriter(new PrintWriter(out));
> [javac] ^
> [javac] [loading
> C:\OpenCMS\ExternalComponents\xerces.jar(org/xml/sax/XMLReader.class)]
> [javac] [loading
> C:\OpenCMS\ExternalComponents\xerces.jar(org/w3c/dom/Document.class)]
> [javac]
> C:\OpenCMS\opencms\src\com\opencms\launcher\CmsPdfLauncher.java:147: cannot
> resolve symbol
> [javac] symbol : method buildFOTree
> (org.xml.sax.Parser,org.xml.sax.InputSource)
> [javac] location: class org.apache.fop.apps.Driver
> [javac] driver.buildFOTree(parser, source);
> [javac] ^
> [javac] [total 9084ms]
> [javac] Note:
> C:\OpenCMS\opencms\src\com\opencms\launcher\CmsPdfLauncher.java uses or
> overrides a deprecated API.
> [javac] Note: Recompile with -deprecation for details.
> [javac] 2 errors
>
> BUILD FAILED
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20010724/384a63ec/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uweheldt.vcf
Type: text/x-vcard
Size: 349 bytes
Desc: Visitenkarte für Uwe Heldt
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20010724/384a63ec/attachment.vcf>
More information about the opencms-dev
mailing list