![](/img/trans.png)
[英]Exception in thread “main” java.awt.AWTError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable
[英]jshell : Exception in thread “main” java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable
最有可能发生以下情况:
因此,一个简单的解决方案是:将JSHELLEDITOR环境变量设置为不需要X窗口的内容,例如vi。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.