Page 1 of 1

Issue in Accessing X11 services when trying to run java AWT

PostPosted: Sun Dec 02, 2012 6:49 am
by Nara_513
Hi All,

I am trying to run a sample java code that display a simple window in OMVS, i am able to compile it , but when i run it am getting the following error :

$ java TopLevelWindow
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which r
equires it.
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:1
73)
        at java.awt.Window.<init>(Window.java:443)
        at java.awt.Frame.<init>(Frame.java:414)
        at javax.swing.JFrame.<init>(JFrame.java:213)
        at TopLevelWindow.createWindow(TopLevelWindow.java:10)
        at TopLevelWindow.main(TopLevelWindow.java:26)
$




I googled the error, tried a couple of options ...but couldnt able to resolve the issue...

Can any one help me out in this...

Re: Issue in Accessing X11 services when trying to run java

PostPosted: Sun Dec 02, 2012 7:44 am
by Robert Sample
You need to consult with your site support group to determine if support for X11 has been installed on your mainframe.