Image manipulation in at-job

2000-02-05 Thread Ekkehard Kraemer

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?

MbG, Ekkehard


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: no swing classes

2000-02-05 Thread Jack Jensen

I want to thank everyone who sent me their help.

My problem was old java commands in the /usr/bin directory. The console
apps and non-swing apps ran
ok with these commands but they choked on the swing stuff. Removing them
and changing my PATH
solved the problem.

Thanks again

Jack Jensen


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Image manipulation in at-job

2000-02-05 Thread Nathan Meyers

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]



Re: Image manipulation in at-job: Xvfb

2000-02-05 Thread Ekkehard Kraemer

Hello Nathan,

thanks! That is exactly like the thing I needed. And it works just absolutely
smooth in the default configuration. Just "Xvfb :15 ; export DISPLAY=:15", and
everything is fine...

NM>Xvfb is available wherever XFree86 is sold.

Or on any fine Debian package server. ;-)

MbG, Ekkehard


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]