Linux下运行Java项目时,出现No X11 DISPLAY variable was set, but this program performed an operation which req
Posted Jim
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux下运行Java项目时,出现No X11 DISPLAY variable was set, but this program performed an operation which req相关的知识,希望对你有一定的参考价值。
在~/.bashrc环境变量文件最下方加入:
export DISPLAY=:0.0
然后,刷新环境变量以使其生效:
source ~/.bashrc
参考:http://stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean
以上是关于Linux下运行Java项目时,出现No X11 DISPLAY variable was set, but this program performed an operation which req的主要内容,如果未能解决你的问题,请参考以下文章
x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11' - 无法运行 Kivy