Getting a HeadlessException: No X11 DISPLAY variable was set

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

    This appears to be a more general SWING/AWT/JDK problem that just the JBOSS installer:

    The accepted answer below solved the issue for me :

    Unable to run java gui programs with ubuntu

    ("sudo apt-get install openjdk-6-jdk")

提交回复
热议问题