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 ...
Linux distros have been slowly adopting Wayland, a new display server standard that aims to address the problems of X11. As more distros make Wayland the default option, X11 is starting to fade out.