<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi Mike,
<p>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:
<p> <font size=-1> Driver driver = new Driver();</font><font size=-1></font>
<p><font size=-1> driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer",
version);</font>
<br><font size=-1> driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");</font>
<br><font size=-1> driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");</font>
<br><font size=-1> driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");</font>
<br><font size=-1> driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");</font>
<br><font size=-1> driver.setOutputStream(new
FileOutputStream(fPdfFile));</font>
<br><font size=-1> driver.buildFOTree(parser,
fileInputSource(fFoFile));</font>
<br><font size=-1> driver.format();</font>
<br><font size=-1> driver.render();</font><font size=-1></font>
<p>Regards Uwe
<p>Mike LaPaglia schrieb:
<blockquote TYPE=CITE>I am compiling in Win 2000, and getting a method
un resolved and was
<br>wondering if anyone could perhaps clue me in to a class library i may
be
<br>missing.
<br>I have had no trouble compiling FOP so I am really confused!
Any help is
<br>appreciated. I am rater new to Java so my experience base is
small.
<p>-Mike
<p> [javac]
<br>C:\OpenCMS\opencms\src\com\opencms\launcher\CmsPdfLauncher.java:146:
cannot
<br>resolve symbol
<br> [javac] symbol : method setWriter (java.io.PrintWriter)
<br> [javac] location: class org.apache.fop.apps.Driver
<br> [javac]
driver.setWriter(new PrintWriter(out));
<br> [javac]
^
<br> [javac] [loading
<br>C:\OpenCMS\ExternalComponents\xerces.jar(org/xml/sax/XMLReader.class)]
<br> [javac] [loading
<br>C:\OpenCMS\ExternalComponents\xerces.jar(org/w3c/dom/Document.class)]
<br> [javac]
<br>C:\OpenCMS\opencms\src\com\opencms\launcher\CmsPdfLauncher.java:147:
cannot
<br>resolve symbol
<br> [javac] symbol : method buildFOTree
<br>(org.xml.sax.Parser,org.xml.sax.InputSource)
<br> [javac] location: class org.apache.fop.apps.Driver
<br> [javac]
driver.buildFOTree(parser, source);
<br> [javac]
^
<br> [javac] [total 9084ms]
<br> [javac] Note:
<br>C:\OpenCMS\opencms\src\com\opencms\launcher\CmsPdfLauncher.java uses
or
<br>overrides a deprecated API.
<br> [javac] Note: Recompile with -deprecation for details.
<br> [javac] 2 errors
<p>BUILD FAILED</blockquote>
</html>