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:
When I run command -v java
I get:
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.16 Replies
My answer would be don't do this, layering Java is a mistake
Is brew considering layering? I thought I was doing it the right way?
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
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
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
Use flathub openjdk runtime
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
I installed it via:
flatpak install flathub org.freedesktop.Sdk.Extension.openjdk21
but prism does not auto detect it
@dreamyukiPrism should download Mojangs Java automatically within the app
I was hoping to avoid using that but it seems like my only option
I'm almost sure Prism let you download openjdk, Mojang's and Adoptium's
Solution
not openjdk actually
to use another versions you would need to give the flatpak access to the bin folder problably
I'll have to try that, where do you access that dialog you showed within prisim?
Settings -> Java -> Management -> Download
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!