我正在使用VNC Viewer,但出现错误
Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using '10.1.102.120:5.0' as the value of the DISP
LAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:110)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:74)
我尝试了其他答案(例如设置DISPLAY =:0或DISPLAY = 0:0)中提供的解决方案,但是没有任何效果。
我使用VNC调用UI的步骤是-