Hi, recently a new Minecraft version came out. And it only supports Java 16, I tried installing with sudo eopkg it openjdk-16
But it didn't work. How can I install it?
OpenJDK 16
rahmanlar Probably you should do a package request.
- Edited
The Minecraft launcher ships with an appropriate JRE version that can be used to run the game. If a game version needs Java 16, it downloads Java 16. If you're using the official launcher, you don't need to worry about installing a new Java version—11 will do fine.
If you're using a third-party client like MultiMC, look into SDKMAN as suggested above. We will not be adding any non-LTS versions of the JDK into the Solus repository, which includes 16.
- Edited
CorvusRuber Thanks, I will try it.
Installation completed, thanks again.
Uh, looks like I have another problem, when I try sudo update-alternatives
it says sudo: update-alternatives: command not found
How can I fix this?
rahmanlar
You can't, it's an Ubuntu command. There's no such thing as update-alternatives
in Solus.
And this brings us to the next question: why are you trying to run that command ?
- Edited
CorvusRuber I'd like to change my Java version from openjdk-8 to openjdk-16. update-alternatives can do that.
rahmanlar
Only on Ubuntu and the like, Solus doesn't work like that (and by the way, SDKMan handles java versioning in userspace, you can install whatever java version you want and set whatever version you want without having to use alternatives).
CorvusRuber I did sdk use java 16.0.1-open
and it works now, thanks!