Originally Posted by
Zlat
Im using fedora gnome desktop and while running swing or applet code there was a headless exception coming saying x11 not found or display variable not set correct i have been trying to solve this whole day thinking there was an issue with my laptop
basketball legends
desktop seting and all .Then when i tried to set headless to false manually it said libawt_xawt.so package not found then i found out that have 3 versions of jdk installed and only in jdk 11 is there a libawt_xawt package available and when running the code in jdk 11
it ran perfectly so why isnt libawt_xawt package installed in jdk 21 and jdk 17 is there a specific reason or is there another solution to my problem rather than running gui based apps in jdk 11 only
Sometimes jdk 11 code often crashes with older desktop computers. I also couldn't run this variable with my dad's desktop. However, it works smoothly on the device in the office.