Modify

Opened 2 months ago

Closed 8 weeks ago

#24477 closed defect (othersoftware)

No X11 DISPLAY variable was set

Reported by: anonymous Owned by: team
Priority: critical Milestone:
Component: Core Version: tested
Keywords: Cc:

Description

I cannot open josm-tested.jar. I ran java -jar josm-tested.jar.

System

OS: Fedora Linux
DE: KDE Plasma 6
Display: Wayland (X11 doesn't come with Fedora. lol)

Console log

2025-09-24 05:29:29.186 INFO: Log level is at INFO (INFO, 800)
2025-09-24 05:29:29.225 INFO: Missing preference file '/home/remy/.config/JOSM/preferences.xml'. Creating a default preference file.
2025-09-24 05:29:29.808 INFO: Detected usable IPv6 network, preferring IPv6 over IPv4 after next restart.
2025-09-24 05:29:29.867 SEVERE: Handled by bug report queue: 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,
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.JFrame.<init>(JFrame.java:180)
at org.openstreetmap.josm.gui.MainFrame.<init>(MainFrame.java:76)
at org.openstreetmap.josm.gui.MainApplication.createMainFrame(MainApplication.java:1050)
at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:898)
at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:280)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:766)

ReportedException [thread=Thread#1,main,5,, exception=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,
, methodWarningFrom=BugReportExceptionHandler#handleException]

at org.openstreetmap.josm.tools.bugreport.BugReport.intercept(BugReport.java:222)
at org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler.handleException(BugReportExceptionHandler.java:22)
at org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler.uncaughtException(BugReportExceptionHandler.java:14)
at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:695)
at java.base/java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at java.base/java.lang.Thread.dispatchUncaughtException(Thread.java:2902)

Caused by: 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.JFrame.<init>(JFrame.java:180)
at org.openstreetmap.josm.gui.MainFrame.<init>(MainFrame.java:76)
at org.openstreetmap.josm.gui.MainApplication.createMainFrame(MainApplication.java:1050)
at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:898)
at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:280)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:766)

Attachments (0)

Change History (5)

comment:1 by stoecker, 8 weeks ago

Resolution: othersoftware
Status: newclosed

Something is wrong with your setup or you tried to run JOSM on a remote system.

Last edited 8 weeks ago by stoecker (previous) (diff)

in reply to:  1 comment:2 by anonymous, 8 weeks ago

Replying to stoecker:

Something is wrong with your setup or you tried to run JOSM on a remote system.

!>X11 error
!>Fedora Linux doesn't come with X11
!>"DE: KDE Plasma 6"

Uh, no. lmao

comment:3 by anonymous, 8 weeks ago

Resolution: othersoftware
Status: closedreopened

comment:4 by anonymous, 8 weeks ago

Also, Fedora doesn't include X11 for a reason: It's in the process of being deprecated in favour of Wayland. GTX, Gnome, and Ubuntu has already dropped support for X11.

It's really old, and not that secure. I don't think forcing users to install legacy software that's being deprecated is a good idea.

comment:5 by stoecker, 8 weeks ago

Resolution: othersoftware
Status: reopenedclosed

If you choose to install a system without X11, then you wont have Java GUI support ATM. As said, your system is broken. This has nothing to do with JOSM.

https://wiki.openjdk.org/display/wakefield
https://wiki.openjdk.org/display/wakefield/Pure+Wayland+toolkit+prototype

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.