Graphical terminal check
Hi,
I am a not familar with java. I am facing a problem with a Java application. When a X Windows is not running java GUI is failing with an error
" Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'MyIPaddress:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java, Compiled Code)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java, Compiled Code)"
How can I check whether the application is invoked from a graphical terminal? I like to know this before calling the application.
Thanks in advance
jesme

