当抛出异常时,我在jshell java-11中运行这个/edit命令。
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.我用的是Debian 9.0操作系统。
异常图像

发布于 2019-07-05 23:40:09
最有可能的情况是,以下几点结合在一起:
因此,一个简单的解决方案可以是:将JSHELLEDITOR环境变量设置为不需要X窗口的值,例如vi。
https://stackoverflow.com/questions/56904222
复制相似问题