Thanks Pascal, that clears up the reasons for the issues we've been having.
I have tried using the -Djava.awt.headless=true command line option, but
this doesn't seem to have any effect - the $fop_exec_command that we're
generating is below:
exec "/usr/lib/jvm/jre/bin/java" -Djava.awt.headless=true -classpath
"/T2009/fop-0.95/lib/xmlgraphics-commons-1.3.1.jar:/T2009/fop-0.95/lib/xml-apis-ext-1.3.04.jar:/T2009/fop-0.95/lib/xml-apis-1.3.04.jar:/T2009/fop-0.95/lib/xercesImpl-2.7.1.jar:/T2009/fop-0.95/lib/xalan-2.7.0.jar:/T2009/fop-0.95/lib/serializer-2.7.0.jar:/T2009/fop-0.95/lib/commons-logging-1.0.4.jar:/T2009/fop-0.95/lib/commons-io-1.3.1.jar:/T2009/fop-0.95/lib/batik-all-1.7.jar:/T2009/fop-0.95/lib/avalon-framework-4.2.0.jar:/T2009/fop-0.95/build/fop.jar:/T2009/fop-0.95/build/fop-sandbox.jar:/T2009/fop-0.95/build/fop-hyph.jar:"
org.apache.fop.cli.Main "-xml" "test.xml" "-xsl" "test.xsl" "-pdf"
"testX.pdf"
We're executing this from a script with the following line:
eval $fop_exec_command
But we still get the display error, unless we set the X display. Fyi the
java version we're running is :
$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-44)
Any ideas why this isn't working?
Thanks
Andy
Pascal Sancho wrote:
>
> Hi,
>
> Batik (SVG engine) needs a graphical environment.
> See [1] for some workarounds..
>
> [1] http://xmlgraphics.apache.org/fop/0.95/graphics.html#batik
>
> Pascal
>
> andyrobb a écrit :
>> When running FOP version 0.95 on Linux I get the following error:
>>
>> Gtk-WARNING **: cannot open display:
>>
>> Running the same request through FOP on Windows works fine. I've also
>> tested
>> using RenderX on Linux and that works fine
>>
>> I've researched the forums and fop faq, but there is scant information on
>> this issue.
>>
>> Does FOP need X and a DISPLAY defining to run under Linux? If so, what is
>> the recommended configuration?
>>
>> Thanks in advance for any help, as an FOP newbie it's much appreciated.
>>
>> Cheers
>> Andy
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
--
View this message in context:
http://old.nabble.com/FOP-Linux-Display-Error---works-fine-on-Windows-tp26703439p26719797.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]