Prism can't detect java (openjdk)

Prism used to just work but it seems something broke since the last time I played minecraft. I can't seem to get it to detect openjdk (installed via brew). I would rather not use the option "Auto-download Mojang Java" within Prism as it often results in worse performance. I did a system upgrade and rebooted then ran the commands below. When I run java -version in a terminal I get:
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment Homebrew (build 22.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 22.0.2, mixed mode, sharing)
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment Homebrew (build 22.0.2)
OpenJDK 64-Bit Server VM Homebrew (build 22.0.2, mixed mode, sharing)
When I run command -v java I get:
/home/linuxbrew/.linuxbrew/bin/java
/home/linuxbrew/.linuxbrew/bin/java
I ran brew unlink openjdk && brew link openjdk and everything linked fine. I'm unable to get prism to detect java even when I manually search for it. Any help would be appreciated.
Solution:
not openjdk actually
No description
Jump to solution
16 Replies
Kyle Gospo
Kyle Gospo3w ago
My answer would be don't do this, layering Java is a mistake
Mules
MulesOP3w ago
Is brew considering layering? I thought I was doing it the right way?
Kyle Gospo
Kyle Gospo3w ago
Brew would also be the wrong way to go about this The best solution is to use exactly what the flatpak ships with no deviation
Mules
MulesOP3w ago
Well whats confusing is that I think I was using what the flatpak shipped. Then I opened it today and it said I have no java installed. I don't remember install java manually via brew but I must have at some point
Kyle Gospo
Kyle Gospo3w ago
The version of Java that's used is downloaded by prism and set in settings, by design it does not use Java from your host machine It can't since that would either be in a brew home directory that it doesn't have access to by default being a flatpak, or in /usr which it can never have access to by design
dreamyuki
dreamyuki3w ago
Use flathub openjdk runtime
dreamyuki
dreamyuki3w ago
GitHub
Flathub
Flathub is a build and distribution service for Flatpak applications. Its goal is to act as a central hub for making desktop applications available to users. - Flathub
Mules
MulesOP3w ago
I installed it via: flatpak install flathub org.freedesktop.Sdk.Extension.openjdk21 but prism does not auto detect it @dreamyuki
Chris
Chris3w ago
Prism should download Mojangs Java automatically within the app
Mules
MulesOP3w ago
I was hoping to avoid using that but it seems like my only option
Rin
Rin3w ago
I'm almost sure Prism let you download openjdk, Mojang's and Adoptium's
Solution
Rin
Rin3w ago
not openjdk actually
No description
Rin
Rin3w ago
to use another versions you would need to give the flatpak access to the bin folder problably
Mules
MulesOP3w ago
I'll have to try that, where do you access that dialog you showed within prisim?
Rin
Rin3w ago
Settings -> Java -> Management -> Download
Mules
MulesOP3w ago
Okay this menu is exactly what I was looking for. When I initially installed bazzite I had it install prism in the welcome wizard and prism had adoptium downloaded by default. But some prism update must have clear them out. Thanks so much for this Rin!
Want results from more Discord servers?
Add your server