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

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Prashanth Thavutam

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

Post by Prashanth Thavutam » Tue May 07, 2002 1:48 pm

I have tested the application successfully on Visual Age for Java on Windows. When I have uploaded the files onto Solaris, I am getting this exception: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at <Unloaded Method>
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:63)
at java.awt.Font.initializeFont(Font.java:262)

I appreciate any help.

Prashanth Thavutam

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

Post by Prashanth Thavutam » Tue May 07, 2002 2:18 pm

I just found about PJAToolkit, yet to try.

Andrea Ponte

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

Post by Andrea Ponte » Thu May 09, 2002 2:25 pm

Hello,
PJA toolkit is very slow. If you have downloaded java1.4 there is a mode called headless that can help you.
The problem onto solaris is that any time you try to plot something it search for a display but on a server you havent a display!!!
then if you use java1.4 awt you can turno on headless mode with:

System.setPrpoperty("java.awt.headless","true");

or something like that.

Bye Andrea

Prashanth Thavutam

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

Post by Prashanth Thavutam » Thu May 09, 2002 7:17 pm

Thank you for your advise Andrea. We are currently using Java 1.2.2, there are some other applications running on this box and they may not consider upgrading it now. Performance is not a big concern right now, this application may not be used by more than 20 users. So, if you can provide me with more details on how to use PJA toolkit, I really appreciate that.

Locked