29
Java Không thể kết nối với máy chủ cửa sổ X11 bằng cách sử dụng 'localhost: 10.0' làm giá trị của biến DISPLAY
Tôi có một tập lệnh sử dụng java để kết nối để hiển thị X11 trong cổng 10.0 tại localhost nhưng tôi luôn gặp lỗi này java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178) at …