Can't seem to install java 21

I've tried using brew, and each time i get the following results: $ brew reinstall openjdk@21 ==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/21/manifests/21.0.7 Already downloaded: /var/home/minecraft/.cache/Homebrew/downloads/ec755cec1c21c81af06195db717f730e290e497bb850a09eb78e1a94c9f84c46--openjdk@21-21.0.7.bottle_manifest.json ==> Fetching openjdk@21 ==> Downloading https://ghcr.io/v2/homebrew/core/openjdk/21/blobs/sha256:e83a003d88721a27a35db545 Already downloaded: /var/home/minecraft/.cache/Homebrew/downloads/10cf6da44e7366fadbdd01744fd700c8f12b5a25200801fc007b4bc23ea0b650--openjdk@21--21.0.7.x86_64_linux.bottle.tar.gz ==> Reinstalling openjdk@21 ==> Pouring [email protected]_64_linux.bottle.tar.gz ==> Caveats openjdk@21 is keg-only, which means it was not symlinked into /home/linuxbrew/.linuxbrew, because this is an alternate version of another formula. If you need to have openjdk@21 first in your PATH, run: echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/openjdk@21/bin:$PATH"' >> /var/home/minecraft/.bash_profile For compilers to find openjdk@21 you may need to set: export CPPFLAGS="-I/home/linuxbrew/.linuxbrew/opt/openjdk@21/include" ==> Summary 🍺 /home/linuxbrew/.linuxbrew/Cellar/openjdk@21/21.0.7: 594 files, 340.8MB ==> Running brew cleanup openjdk@21...
9 Replies
asen23
asen232d ago
use prismlauncher for minecraft less headache
MacaroniBot
MacaroniBotOP2d ago
what is prismlauncher?
asen23
asen232d ago
minecraft launcher include java oh wait ur username is minecraft?
MacaroniBot
MacaroniBotOP2d ago
Ah, okay. If it installs java 21 then that would work. I'm trying to run a minecraft server on my bazzite machine
MacaroniBot
MacaroniBotOP2d ago
one of the local users. its a test user while I figure things out I'll look into it, see if it'll work for modded
asen23
asen232d ago
it will check the docs
MacaroniBot
MacaroniBotOP2d ago
ohhh i see, set up the container and then run the server within you wouldn't happen to have a quadlet setup guide would you?
asen23
asen232d ago
thats what i linked read from the top if you want more explanation

Did you find this page helpful?