Getting a HeadlessException: No X11 DISPLAY variable was set

前端 未结 5 1595
隐瞒了意图╮
隐瞒了意图╮ 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:49

    I think you are trying to run some utility or shell script from UNIX\LINUX which has some GUI. Anyways

    SOLUTION: dude all you need is an XServer & X11 forwarding enabled. I use XMing (XServer). You are already enabling X11 forwarding. Just Install it(XMing) and keep it running when you create the session with PuTTY.

提交回复
热议问题