When I run my Java code from Eclipse it works fine. When I run it from a terminal in the Windows Subsystem for Linux it says "No X11 DISPLAY variable was set,". It is set, I can echo it. I can also ...
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) ...