請教一下各位前輩們,小生的系統是 Debian Sid(unstable) ,系統中的 X server 還是 X11 Windows server 似乎一直有怪問題,像是小生執行了有 AWT 圖形化元件的 Java 應用程式的時候,就會出現如下的訊息而無法執行:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at java.awt.Window.init(Window.java:263)
at java.awt.Window.<init>(Window.java:311)
at java.awt.Frame.<init>(Frame.java:419)
at mainframe.<init>(MCM.java:272)
at MCM.main(MCM.java:33)
而小生想要執行 dpkg-reconfigure debconf 或者是 dpkg-reconfigure xserver 亦或者是 dpkg-reconfigure xserver-common 的時候就會出現如下訊息:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
dpkg-reconfigure: cannot connect to X server :0.0
請教一下前輩這到底是怎麼一回事呢??? 是哪裡出了問題啊??? 可否煩請前輩指點一下才的小生該怎麼解決才是呢??? 非常的感謝各位!!!