java.awt.HeadlessException

No X11 DISPLAY variable was set, but this program performed an operation which requires it.

Solutions on the web181

  • No X11 DISPLAY variable was set, but this program performed an operation which requires it.
  • via GitHub by moskalenko
    , 1 year ago
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
  • via GitHub by KIC
    , 1 year ago
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
  • Stack trace

    • java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it. at java.awt.Desktop.getDesktop(Desktop.java:124)[na:1.6.0_26] at com.expd.content.web.controller.PastRunsController.openCMALog(PastRunsController.java:163)[PastRunsController.class:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_26] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_26] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_26] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_26] at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)[spring-web-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)[spring-webmvc-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)[spring-webmvc-3.1.3.RELEASE.jar:3.1.3.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)[spring-webmvc-3.1.3.RELEASE.jar:3.1.3.RELEASE]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.