----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
At 15:19 30.05.00 -0400, you wrote:
>It's an old problem having to do with the xlibs being loaded as soon as
>you use anything related to awt. To work around it you just have to
>start a fake xserver. I forget exactly how, you can ask them at the
>blackdown mailing list.
>
>Brevsville Administrator wrote:
> > So why X11?? it is not drawing on any wm, it is just loading an image. I
> > do have X installed, but gee I haven't run it for ages and can't see any
> > reason why this code would rely on X at all.
i came along the same problem some days ago. it's annoying.
you best use the X virtual frame buffer xvbf which probably came with your
linux distribution. it's a leightweight X server writing to memory instead
of a real device. it's normally used for testing.
you have to pass the DISPLAY environment variable to the JVM via
wrapper.env=DISPLAY=127.0.0.1:1
in jserv.properties. (you could use 127.0.0.1:0, but this is normally used
for the real screen on your machine, so you better use screen 1).
i also had to
- give the JVM access to the X server:
xhost +127.0.0.1
- explicitely tell the xvbf to use 8 bit colors by starting it with the
following option: (to get the colors right)
/usr/X11/bin/xvbf :1 -screen 0 800x600x8
(the resolution doesn't matter, the 8 is important)
good luck!
for me this is a bug (at least with respect to portability), for sun it's a
r'equests for enhancement' (they call it headless java). it ranges quite
high in the list of the top 25 rfe's. so to get sun to fix this problem
soon, go to their web site an vote for it!
markus kemmerling
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]