I just wanted to thank all for the replies to my problem. Actually i tested
the hint of Weiqi Gao to use the PJA-package and it seems to work very good.

Thanks again,

Michael

> Michael Remme wrote:
> >
> > i am running a servlet on a suse 7.0 -server,
> > running with blackdown jdk 1.2.2. This servlet
> > shall create on the fly a gif-image and store that
> > somewhere on the server.
> >
> > When the module of the servlet is reaching the
> > point, where it shall call the graphic-environment,
> > the following error occurs:
> >
> >     java.lang.InternalError:
> >     Can't connect to X11 window server using ':0.0' as
> the value of the DISPLAY variable.
> >
> > Since yesterday i am reading everything about
> > xwindows, DISPLAY-variable e.g., in the net and in
> > some books but don't come to a real success. Can
> > anybody help me?
>
> Nathan Meyer's book on Java Programming on Linux has a
> chapter for this problem.
>
> In a Nutshell, to run the stock AWT (from Sun JDK),
> you need the X11 shared libraries and potentially a
> running X server.
>
> The X shared libraries are needed because a lot of the
> AWT classes has a static initializer that does
> something to the effect of "System.loadLibrary("<some
> X related library.so>");".  Even the class
> java.awt.Point does this.
>
> A running X server is needed when you do something
> like a "Graphics.drawLine(0,0, 100, 100);"  After all
> the Java wrapper code, the actually drawing is
> ultimately done by the X server.
>
> There are several ways you can get out of the dilemma:
>
> 1. Configure and run a real X server on the box where
> the servlet engine resides.  This requires a graphics
> card.
>
> 2. Run a xvfb (or is it xvbf?).  This is a server much
> like a real X server, but does not control any real
> graphics card.  You still need all the X libraries.
>
> 3. Use an alternative AWT package rather than the
> stock JDK AWT package.  eTok's PJA (Pure Java AWT) can
> be used this way.  PJA does all the drawing in Java
> and does not need any X libraries or a running X
> server.
>
>
> =====
> Weiqi Gao
> [EMAIL PROTECTED]
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>


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

Reply via email to