Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4979996

Should default to headless java when DISPLAY is null on unix

XMLWordPrintable

    • b43
    • x86, sparc
    • linux, solaris_10

      Currently, in order to use headless java, the headless flag must be
      specified when launching the VM: java -Djava.awt.headless=true

      Judging by traffic on the java forums, and from bugs we have received, many
      people find this confusing. It has recently been suggested that we should
      default to headless java on unix and linux systems when the DISPLAY
      variable is null.

      Note: we should not default to headless when the DISPLAY is invalid.

      Also, this heuristic should not override user settings: if the DISPLAY is null,
      but headless java has been disabled at launch (-Djava.awt.headless=false)
      we should not choose headless.

            ant Anton Tarasov (Inactive)
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: