Issues with X11 display

Wednesday, 1 May 2024 · 5 messages
GS
Graydon Saunders1 May 2024 01:36 #
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
BD
Bridger Dyson-Smith1 May 2024 02:33 #
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
Quoted text · Graydon Saunders · 40 lines
On Tue, Apr 30, 2024, 5:36 PM Graydon Saunders <graydonish at 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 >
LQ
Liam R. E. Quinin reply to Graydon Saunders, 1 May 2024, 01:361 May 2024 02:55 #
Quoted text · Graydon Saunders · 5 lines
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
-- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
G
Graydonin reply to Bridger Dyson-Smith, 1 May 2024, 02:331 May 2024 05:00 #
Quoted text · Bridger Dyson-Smith · 5 lines
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
G
Graydonin reply to Liam R. E. Quin, 1 May 2024, 02:551 May 2024 05:03 #
Quoted text · Graydon Saunders · 6 lines
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".
Quoted text · Liam R. E. Quin · 4 lines
> 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

⚡Generated with XQuery