Cannot Start Jconsole Exception: No X11 DISPLAY Variable Was Set

(Doc ID 1056173.1)

Last updated on SEPTEMBER 06, 2017

Applies to:

Oracle Communications Order and Service Management - Version 2.8.0 to 7.2.2 [Release 2.8 to 7.2]
Information in this document applies to any platform.
***Checked for relevance on 13-Mar-2013***
***Checked for relevance on 04-Dec-2015***
***Checked for relevance on 06-Sept-2017***

Symptoms

When trying to start jconsole in Solaris using SSH Secure Shell, getting the following errors:

/export/osmenv06/bea921/jdk150_06/bin $ ./jconsole
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:159)
at java.awt.Window.<init>(Window.java:317)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at sun.tools.jconsole.JConsole.<init>(JConsole.java:65)
at sun.tools.jconsole.JConsole$4.run(JConsole.java:666)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms