原文:Linux下運行Java項目時,出現No X11 DISPLAY variable was set, but this program performed an operation which requires it.的問題解決

在 .bashrc環境變量文件最下方加入: 然后,刷新環境變量以使其生效: 參考:http: stackoverflow.com questions no x display variable what does it mean ...

2017-05-09 20:59 0 12111 推薦指數:

查看詳情

“No X11 DISPLAY variable was set問題解決過程

1.之前在windows上驗證,截屏功能很正常,於是部署到linux上 2.運行后,報“No X11 DISPLAY variable was set, but this program performed an operation which requires it. ”的錯誤 ...

Sat Aug 03 01:44:00 CST 2013 0 10755
No X11 DISPLAY variable was set

在命令行調用圖形化界面時報錯 “No X11 DISPLAY variable was set” 首先使用xclock命令查看是否能調出時鍾,如果不行,使用如下命令: 打開xmanager – passive Export DISPLAY=IP:0.0 其中IP為Windows系統本地 ...

Sat Mar 30 00:05:00 CST 2019 0 1294
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM