Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Can't connect to X11 window server using ':0.0' as the

Re: Can't connect to X11 window server using ':0.0' as the

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: 11 Mar 2002 06:59:31 -0800
Message-ID: <a20d28ee.0203110659.392ed69d@posting.google.com>


h_elmaghraoui_at_hotmail.com (hajar) wrote in message news:<e6194e98.0203110215.42bb9c3d_at_posting.google.com>...
> hello
>
> i have a servlet which manipulate gif images
> it works on my local machine (WinXP)
> but when i try to run it on a linux server (with apache)
> it fails.
>
>
> knowing that in the first execution i have the following error
>
> "Can`t connect to X11 window server using `:0.0` as the value of the
> DISPLAY variable."
>
>
> And after i always still have the following error:
>
> "java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
> at org.apache.jserv.JServConnection.processRequest(JServConnection.java:
> 320)
> at org.apache.jserv.JServConnection.run(JServConnection.java:188)
> at java.lang.Thread.run(Thread.java:475)"
>
>
> i think that this problem occurs in my servlet when executing this
> instruction:
>
> Image awtImage = Toolkit.getDefaultToolkit().getImage (...)
>
>
> the Xserver is already activated on my linux server
> the enviroment variable DISPLAY has the value:
>
> DISPLAY=:0
>
> do you have any idea?
>
>
> thanks
>
> hajar

export DISPLAY=<ip of your PC>:0.0 on the server.

Hth

Sybrand Bakker
Senior Oracle DBA Received on Mon Mar 11 2002 - 08:59:31 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US