我正在尝试通过Putty运行jar文件,该文件是通过Amazon Web Server上传的。我已经尝试将编译器遵从性级别从1.8更改为1.7。我得到了错误:No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnv
以下是一些有用的东西:su -c xhost以下是一些不起作用的事情:sudo su `logname`-c xhostsudo -u `logname` xhost
每个错误都抛出以下错误:access control enabled, only authorized clients can conne
我想在每次系统启动时运行DISPLAY=:0 xhost +。(我知道xhost +的安全含义。)=multi-user.targetJob for set-xhost.serviceSee "systemctl status set-xhost.service" and "journalctl -xe" for details.Jun 09 1