X11 Windows Server using 0.0 as Display variable
807559Oct 10 2001 — edited Aug 8 2002Hi,
I am running Solaris 8 on Sparc. I get an exception while trying to run a java program (which is trying to start an applet). I modified the .profile file and added
DISPLAY=10.0.0.5:0.0
export DISPLAY
But this does not help
When i try echo $DISPLAY I get nothing.
Where else I need to make changes ? Will appreciate any help.
The detailed exception is :
Exception in thread "main" 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 sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:5
9)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
ronment.java:58)
at java.awt.Window.<init>(Window.java:189)
at java.awt.Frame.<init>(Frame.java:315)
at java.awt.Frame.<init>(Frame.java:294)
at com.ice.jcvs.CVSAppletFrame.<init>(CVSAppletFrame.java:47)
at com.ice.jcvs.CVSApplication.main(CVSApplication.java:129)
Thanks
shivraj