Konloch / Konloch/bytecode-viewer

Bytecode-Viewer-2.12 not work on Wayland with Gnome

Open
#502 3 comments 0 reactions 1 assignee Claimed by @Konloch View on GitHub
Bug Linux
Dominant language
Java
Stars
15.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Hi,

Bytecode Viewer 2.12 not work on Wayland with Gnome

System OS: Fedora Linux 40
Desktop: Gnome 46

java -jar ./Bytecode-Viewer-2.12.jar
output:
```
$ java -jar ./Bytecode-Viewer-2.12.jar
Bytecode Viewer 2.12 [Fat Jar] - Created by @Konloch
https://bytecodeviewer.com - https://the.bytecode.club
Cannot set security manager! Are you on Java 18+ and have not enabled support for it?
Because of this, you may be susceptible to some exploits!
Either deal with it or allow it using the -Djava.security.manager=allow parameter.
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.(Window.java:553)
at java.desktop/java.awt.Frame.(Frame.java:428)
at java.desktop/java.awt.Frame.(Frame.java:393)
at java.desktop/javax.swing.JFrame.(JFrame.java:180)
at the.bytecode.club.bytecodeviewer.gui.components.JFrameConsole.(JFrameConsole.java:48)
at the.bytecode.club.bytecodeviewer.gui.components.JFrameConsole.(JFrameConsole.java:44)
at the.bytecode.club.bytecodeviewer.api.ExceptionUI.(ExceptionUI.java:67)
at the.bytecode.club.bytecodeviewer.BytecodeViewer.handleException(BytecodeViewer.java:652)
at the.bytecode.club.bytecodeviewer.BytecodeViewer.handleException(BytecodeViewer.java:644)
at the.bytecode.club.bytecodeviewer.BytecodeViewer.main(BytecodeViewer.java:239)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.