1 Reply Latest reply on May 26, 2006 1:46 AM by visolvejboss

    Can't connect to X11 window server

      Hi,
      My application contains some images to be dispalyed in jsp page. I am using Jboss 4.1sp3 with jdk1.5 running under solaris 10. At the time of image display i am getting following error.....

      java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY

      at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method

      at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53

      at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142

      at java.security.AccessController.doPrivileged(Native Method
      at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:131

      at java.lang.Class.forName0(Native Method)

      at java.lang.Class.forName(Class.java:164)

      at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)

      Suggest me some solution for the display of image in the page

        • 1. Re: Can't connect to X11 window server
          visolvejboss

          Hello,
          You told that, Jboss 4.1sp3 with jdk1.5 running under solaris 10.

          First, I want to know that Is solaris 10 your Destop system or a Server?

          If It is your Server,
          Then, The solution for your problem is,
          To set the DISPLAY Variable.

          Syntax is,

          #export DISPLAY=<ur system's ip-address>:0

          Thanks,
          -VisolveJBossTeam.