Ekkehard Kraemer wrote:
>
> Hello,
>
> I would like to run a java program as at-job. This works OK, but the program
> needs to manipulate (not display) some Image objects, thus initializing the
> AWT, and this fails, because in a at-job there isn't necessarily a valid
> DISPLAY variable (and no X display, of course). So the program crashes when it
> first uses some AWT stuff.
>
> Can I do anything to make this work?
The AWT insists on an X server, even if you're not displaying anything.
The virtual frame buffer X server, Xvfb, is just the tool you need - it
runs an X server to a memory buffer instead of a physical display card:
run one, set DISPLAY appropriately, and you can run the AWT or other X
clients.
Here's a relevant paragraph from the Xvfb man page:
"The primary use of this server was intended to be server testing.
The mfb or cfb code for any depth can be exercised with this server
without the need for real hardware that supports the desired depths.
The X community has found many other novel uses for Xvfb,
including testing clients against unusual depths and screen
configurations, doing batch processing with Xvfb as a background
rendering engine, load testing, as an aid to porting the X server to a
new platform, and providing an unobtrusive way to run applications
that don't really need an X server but insist on having one anyway."
Xvfb is available wherever XFree86 is sold.
Nathan
>
> MbG, Ekkehard
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]