java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. 2. Otherwise, it might be looking for some graphics controller like X manager, which is not there, eventually resulting in "No X11 DISPLAY variable was set" to be thrown.

Coderanch | khushhal yadav | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Getting java.awt.HeadlessException Exception

    Coderanch | 8 years ago | khushhal yadav
    java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. 2. Otherwise, it might be looking for some graphics controller like X manager, which is not there, eventually resulting in "No X11 DISPLAY variable was set" to be thrown.
  2. 0

    why DISPLY is necessary ?

    Google Groups | 5 years ago | tonimenen
    java.lang.reflect.InvocationTargetException

  1. rp 1 times, last 2 months ago

Root Cause Analysis

  1. java.awt.HeadlessException

    No X11 DISPLAY variable was set, but this program performed an operation which requires it. 2. Otherwise, it might be looking for some graphics controller like X manager, which is not there, eventually resulting in "No X11 DISPLAY variable was set" to be thrown.

    at java.awt.GraphicsEnvironment.checkHeadless()
  2. Java RT
    Window.<init>
    1. java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
    2. java.awt.Window.<init>(Unknown Source)
    2 frames