When attempting to install JBoss EAP via the gui installer method on RHEL10, the following exception occurs:
Exception in thread "main" java.awt.HeadlessException: No X11 DISPLAY variable was set, or no headful library support was found, but this program performed an operation which requires it, at java.desktop/java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:164) at java.desktop/java.awt.Window.<init>(Window.java:553) at java.desktop/java.awt.Frame.<init>(Frame.java:428) at java.desktop/java.awt.Frame.<init>(Frame.java:393) at java.desktop/javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1925) at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:2001) at java.desktop/javax.swing.JWindow.<init>(JWindow.java:183) at java.desktop/javax.swing.JWindow.<init>(JWindow.java:135) at org.jboss.installer.Installer.installerSplash(Installer.java:229) at org.jboss.installer.Installer.runGuiInstaller(Installer.java:109) at org.jboss.installer.Installer.main(Installer.java:89)
Tested with OpenJDK21
Update: After reinstalling and going through the steps again, the installer now launches fine. Im not yet sure what caused the previous issue
The issue was caused by wrong jdk installation. I installed headless java first time around, which lacks some of the needed dependencies. X being removed is not actually an issue, since RHEL10 still has Xwayland.