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.
Can't connect to X11 window server using ':0.0'
Re: Can't connect to X11 window server using ':0.0'
I just found about PJAToolkit, yet to try.
Re: Can't connect to X11 window server using ':0.0'
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
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
Re: Can't connect to X11 window server using ':0.0'
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.