This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Error at trying to run java gui applications

Tags: None
(comma "," separated)
archivaldo
Registered Member
Posts
1
Karma
0
First time I noticed i was making a simple application with JOptionsPane but the moment I try to run it this error appeared:

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,
...

I googled for an answer but all recommendations were something like

$ export DISPLAY=:0.0

Or some other variant but it did`t solved it.

I also tried adding this option: java -Djava.awt.headless=true myprogram. it didn't work either.

I discard that it's a problem with my program cause digital (https://github.com/hneemann/Digital) show's the same problem the moment when i try to run it.

- Java Version:
openjdk 19.0.1 2022-10-18
OpenJDK Runtime Environment (build 19.0.1+10-Ubuntu-1ubuntu122.04)
OpenJDK 64-Bit Server VM (build 19.0.1+10-Ubuntu-1ubuntu122.04, mixed mode, sharing)
- Using KDE Neon 5.26


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]