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

Doesn't work on Ubuttu 22.10 #24

Open
yoseidonn opened this issue Feb 13, 2023 · 2 comments · May be fixed by #31
Open

Doesn't work on Ubuttu 22.10 #24

yoseidonn opened this issue Feb 13, 2023 · 2 comments · May be fixed by #31

Comments

@yoseidonn
Copy link

I don't actually know if it works on other versions of distros but it gives an error says: No X11 DISPLAY variable was set. I'm not familiar with java but i think it can not find the correct stuff for the gui. You may wanna check it if it's important for you. Good job btw.

@sanj0
Copy link

sanj0 commented Feb 15, 2023

This is a pure Java project; the error you're getting is out of scope and has to do with your environment variables. Try setting your DISPLAY env var to :0.0 for main display like so:

export DISPLAY=:0.0

and/or add that to your *rc script anyway.
See also https://stackoverflow.com/questions/662421/no-x11-display-variable-what-does-it-mean

@TMTRTLP
Copy link

TMTRTLP commented Apr 25, 2023

It also might be a good idea to check to see if you have a headless version of Java installed. I was also having issues with this even after setting the display variable. It turns out it was because I had openjdk-21-jdk-headless installed instead of openjdk-21-jdk. After installing the normal JDK everything started working.

@TMTRTLP TMTRTLP linked a pull request May 2, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants