Getting a HeadlessException: No X11 DISPLAY variable was set

前端 未结 5 1615
隐瞒了意图╮
隐瞒了意图╮ 2020-12-03 10:24
Exception in thread \"main\" java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
        at j         


        
5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-03 10:56

    Your system does not have a GUI manager. Happens mostly in Solaris/Linux boxes. If you are using GUI in them make sure that you have a GUI manager installed and you may also want to google through the DISPLAY variable.

提交回复
热议问题