Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No X11 DISPLAY variable was set - Wayland #2002

Closed
VehementHam opened this issue May 13, 2024 · 2 comments
Closed

No X11 DISPLAY variable was set - Wayland #2002

VehementHam opened this issue May 13, 2024 · 2 comments
Labels
java Pull requests that update Java code linux it's Linux related

Comments

@VehementHam
Copy link

I get this error when running on Wayland:

May 12, 2024 7:42:59 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
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.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1925)
	at java.desktop/javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:2001)
	at java.desktop/javax.swing.JOptionPane.getRootFrame(JOptionPane.java:1696)
	at java.desktop/javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:875)
	at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:677)
	at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:648)
	at java.desktop/javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:619)
	at com.cburch.logisim.gui.generic.OptionPane.showMessageDialog(OptionPane.java:45)
	at com.cburch.logisim.Main.main(Main.java:65)

I am running the .jar file on Hyprland Alpine Linux.

@maehne maehne added linux it's Linux related java Pull requests that update Java code labels May 15, 2024
@maehne
Copy link
Member

maehne commented May 15, 2024

You likely don't have a full JDK installed on your machine, but a reduced "headless" variant. See, e.g., this discussion on the Fedora forum. The binary packages, which we provide, e.g., as a nightly build contain a bundled JDK. If you build from source or use the shadow JAR, you have to make sure that you have a full OpenJDK 21 installed, e.g., from the Eclipse Temurin project.

@VehementHam
Copy link
Author

I think that was it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java Pull requests that update Java code linux it's Linux related
Projects
None yet
Development

No branches or pull requests

2 participants