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)
$
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...