Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: AWT and linux!!!!!
"hajar" <h_elmaghraoui_at_hotmail.com> wrote in message
news:e6194e98.0203121008.6102d366_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 mandrake (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=localhost:0.0
>
> (notice i try DISPLAY=:0.0 and DISPLAY=131.107.0.40:0.0 and
> DISPLAY=:0
>
> but i have also exactly the same errors)
> i had execute "xhost +localhost" to allow my machine(which is the
> linux server)
> to access the Xserver
> knowing that i run my servlet on the same machine
>
> do you have any idea?
>
>
> thanks
>
> hajar
Have you tried to run that from within an XWindow session, i.e. in gnome from a termianl opened on the desktop? Received on Wed Mar 13 2002 - 13:15:57 CST
![]() |
![]() |