Re: ImageServer without X11?

From: <david.garnier@etudier-online.com>
Date: Fri Jun 14 2002 - 07:28:12 EDT

En réponse à MARTIJN VAN DER PAUW <martijnp@meteocon.nl>:
> I heard and read in the 1.4 specs that with the new java 1.4 API it
> shouldn't be necessary to have a X-server or virtual frame buffer
> installed. But, I don't know if you actually have to change code to
> get that done.

Yes indead. The major problem with this new feature is that the documentation
is completly opaque and misleading. If you read the changelog you might think
that this new feature will:
-- Throws a new HeadlessException if the server is headless, and nothing more.
-- Allows you to instantiate JFrames without a native peer.

Both statements are wrong. I spent time investigating this issue, and the real
purpose of the headless mode is still unknown to me. So far, the only
difference I see is that if the headless mode is on, the JVM will throw a
HeadlessException instead of some ToolkitException if you try to create a
JFrame without an X server.

What you should to is to directly create Images instances using the
BufferedImage class instead of obtaining them from a Frame.

> Besides that, can you tell me idf a virtual frame buffer get the same
> performance?

I have absolutely no problem with Xvfb.

>
> Op 13 Jun 02, om 23:29, Joe Desbonnet schreef:
>
> > My preference would be not to have X installed, as I don't have easy
> > access to /usr directory (can X by installed in a user directory?) but
> if
> > that is the only practical means... I guess it would have to do.
> >
> > Regards,
> >
> > Joe.
> >
> >
> > On Thu, Jun 13, 2002 at 04:12:07PM -0400, Don Dietrick wrote:
> > > Hi Joe,
> > >
> > > Do you not have X11 installed, or do you not want to have a display
> for
> > > the process? If you have X11 installed, you can use xvfb (X
> virtual
> > > frame buffer) to set up a display for your process to use.
> > >
> > > - Don
> > >
> > > On Wednesday, June 12, 2002, at 04:13 PM, Joe Desbonnet wrote:
> > >
> > > > What is the best way to get the
> ImageServer/SimpleHttpImageServer
> > > > working on a Linux machine that does not have X11 installed?
> > > >
> > > > I'm currently trying the PJA library, but running into some
> problem.
> > > >
> > > > Thanks,
> > > > Joe.

This question as already be answered several times.

Best regards,
David Garnier

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Jun 14 07:32:35 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT