Thanks, Mirko - I didn't want to find the source,
but I guess I'll have to.  But you've got me started again,
tthanks.
lee

At 16:37 16/05/2002 +0200, Mirko Sertic wrote:
Its not an error, its wrong java code

RENDER_PDF is s static member variable of the Driver class,
so you have to type:

    driver.setRenderer(Driver.RENDER_PDF);

Cheers

Mirko


-----Ursprungliche Nachricht----- Von: Lee Goddard [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. Mai 2002 16:39 An: [EMAIL PROTECTED] Betreff: Examples


On the examples page of the xml.apache.org/fop site, http://xml.apache.org/fop/embedding.html there is this sample:

    Driver driver = new Driver(new InputSource (args[0]),
                               new FileOutputStream(args[1]));
    driver.setRenderer(RENDER_PDF);
    driver.run();

I thought perhaps RENDER_PDF referred to an (imported) constant.
But I from Java1.4 am told:

C:\PXML\_printing\test.java:33: cannot resolve symbol
symbol  : variable RENDER_PDF
location: class test
                         driver.setRenderer(RENDER_PDF);

Could someone please tell me of my error?

TIA
Lee


Lee Goddard perl -e "while(1){print rand>0.5?chr 47:chr 92}"



Reply via email to