在Linux上运行需要图形界面的程序时出现如下错误提示:
No protocol specified
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':1.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:66) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:187) at java.