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

javascript United States
  • 19 years ago

    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


    "Cant 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


Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Computer science education cannot make anybody an expert programmer any more than studying brushes and pigment can make somebody an expert painter” - Eric Raymond