Hello --
After upgrading to Fedora 40, I find that I can not run the BaseX GUI. This is against BaseX110-20240426.163243.zip or 10.7
17:28 bin % ./basexgui /home/graydon/bin/basex/basex/.basex: writing new configuration file. 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:166) 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.JFrame.<init>(JFrame.java:180) at org.basex.BaseXGUI.splash(BaseXGUI.java:96) at org.basex.BaseXGUI.<init>(BaseXGUI.java:54) at org.basex.BaseXGUI.main(BaseXGUI.java:37)
17:23 bin % java -version openjdk version "21.0.2" 2024-01-16 OpenJDK Runtime Environment (Red_Hat-21.0.2.0.13-4) (build 21.0.2+13) OpenJDK 64-Bit Server VM (Red_Hat-21.0.2.0.13-4) (build 21.0.2+13, mixed mode, sharing)
Various attempts to set DISPLAY have not been helpful.
Trying to use OpenJDK 17 produced effectively the same error message at greater length.
Anyone got any suggestions on how to fix this?
Thanks! Graydon
Hi Grayson
I'm not in front of a RHEL box, but have you tried the OpenJDK with a head? Ie not the headless version.
Best, Bridger
On Tue, Apr 30, 2024, 5:36 PM Graydon Saunders graydonish@gmail.com wrote:
Hello --
After upgrading to Fedora 40, I find that I can not run the BaseX GUI. This is against BaseX110-20240426.163243.zip or 10.7
17:28 bin % ./basexgui /home/graydon/bin/basex/basex/.basex: writing new configuration file. 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:166) 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.JFrame.<init>(JFrame.java:180) at org.basex.BaseXGUI.splash(BaseXGUI.java:96) at org.basex.BaseXGUI.<init>(BaseXGUI.java:54) at org.basex.BaseXGUI.main(BaseXGUI.java:37)
17:23 bin % java -version openjdk version "21.0.2" 2024-01-16 OpenJDK Runtime Environment (Red_Hat-21.0.2.0.13-4) (build 21.0.2+13) OpenJDK 64-Bit Server VM (Red_Hat-21.0.2.0.13-4) (build 21.0.2+13, mixed mode, sharing)
Various attempts to set DISPLAY have not been helpful.
Trying to use OpenJDK 17 produced effectively the same error message at greater length.
Anyone got any suggestions on how to fix this?
Thanks! Graydon
On Tue, Apr 30, 2024 at 06:33:04PM -0400, Bridger Dyson-Smith scripsit:
Hi Grayson
I'm not in front of a RHEL box, but have you tried the OpenJDK with a head? Ie not the headless version.
Hi Bridger --
I was about to tell you I had checked that and there were regular and headless versions of 11, 17, and 21 present and then I got fancy with dnf to specifically generate the list of what was actually installed and 21 was present as just the headless version.
Installing regular 21 fixes it; thank you!
-- Graydon
On Tue, 2024-04-30 at 17:36 -0400, Graydon Saunders wrote:
Hello --
After upgrading to Fedora 40, I find that I can not run the BaseX GUI. This is against BaseX110-20240426.163243.zip or 10.7
Probably this is because you're running Wayland, not X11.
There's a thing alled Project Wakefield trying to add Wayland support to AWT and Swing, but i’m not sure how far they have got.
https://wiki.openjdk.org/display/wakefield/Pure+Wayland+toolkit+prototype
On Tue, Apr 30, 2024 at 06:54:53PM -0400, Liam R. E. Quin scripsit:
On Tue, 2024-04-30 at 17:36 -0400, Graydon Saunders wrote:
After upgrading to Fedora 40, I find that I can not run the BaseX GUI. This is against BaseX110-20240426.163243.zip or 10.7
Probably this is because you're running Wayland, not X11.
echo $XDG_SESSION_TYPE
says "x11".
There's a thing alled Project Wakefield trying to add Wayland support to AWT and Swing, but i’m not sure how far they have got.
https://wiki.openjdk.org/display/wakefield/Pure+Wayland+toolkit+prototype
I was in no hurry about Wayland and now perhaps I am in an anti-hurry.
Thank you!
-- Graydon
basex-talk@mailman.uni-konstanz.de