Issue in Accessing X11 services when trying to run java AWT



IBM OS/370, MVS, OS/390, Linux, TPF, VM/CMS, VM/ESA, VSE/ESA, z/VM, z/VSE, z/OS, z/OS.e etc...

Issue in Accessing X11 services when trying to run java AWT

Postby Nara_513 » Sun Dec 02, 2012 6:49 am

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...
Nara_513
 
Posts: 44
Joined: Fri Dec 02, 2011 1:11 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby Robert Sample » Sun Dec 02, 2012 7:44 am

You need to consult with your site support group to determine if support for X11 has been installed on your mainframe.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to Operating Systems

 


  • Related topics
    Replies
    Views
    Last post