Hello, We are moving from a Sun SPARC Solaris environment to SuSE SLES 8 for AMD64 on Opteron processors. On Solaris we were able to use the "-Djava.ast.headless=true" to eliminate the need for an X server so our Tomcat servlet engine could render graphics for display in the web browser (actually we use Apache FOP/BATIK to render SVG as PDF documents). On SLES for AMD64, the Java version is the IBMJava2 1.4.1 SDK. It does not recognize the "-Djava.awt.headless=true" option. There have been a number of workarounds suggested. The PJA toolkit does not seem to work for a number of reasons. The other suggestion was to use the Xvfb (X virtual frame buffer). I can find a man page for Xvfb in our SLES 8 install, but no actual module. Can someone provide instructions for enabling or accessing Xvfb? Obviously I am not an X guru - I use KDE and that's about it. I have waited for over two days for SuSE support to provide help - I'm starting to wonder why I paid the big bucks for SLES at this point. Thank you in advance - Richard Mixon
Le sam 28/02/2004 à 06:04, Richard Mixon (qwest) a écrit :
Hello,
We are moving from a Sun SPARC Solaris environment to SuSE SLES 8 for AMD64 on Opteron processors. On Solaris we were able to use the "-Djava.ast.headless=true" to eliminate the need for an X server so our Tomcat servlet engine could render graphics for display in the web browser (actually we use Apache FOP/BATIK to render SVG as PDF documents).
The headless switch does not eliminate the need for an X server, It just throw an exception earlier. Your setup works because FOP/Batik were probably carefully programmed to work around this problem.
On SLES for AMD64, the Java version is the IBMJava2 1.4.1 SDK. It does not recognize the "-Djava.awt.headless=true" option. There have been a number of workarounds suggested. The PJA toolkit does not seem to work for a number of reasons.
Why don't you install Sun's version? The 32-bit one for Linux should work just fine.
The other suggestion was to use the Xvfb (X virtual frame buffer). I can find a man page for Xvfb in our SLES 8 install, but no actual module.
Can someone provide instructions for enabling or accessing Xvfb? Obviously I am not an X guru - I use KDE and that's about it.
I don't know about SLES 8, but under SuSE 9.0, it is available through Yast2. I've been using the Xvfb for years under many SuSE version and I never had a problem. Something from an old project: Start Xvfb ( in /usr/X11R6/bin) with this command: Xvfb :1 -screen 0 640x480x16 It creates a 640x480, 8bit "virtual desktop" running on 1.0 Then just tell the application to use it with : DISPLAY:localhost:1.0 export DISPLAY Doing an xhost +localhost migth be necessary. Best Regards -- David Garnier <david.garnier@etudier-online.com>
participants (2)
-
David Garnier
-
Richard Mixon (qwest)