Linux Mint Unable to Update Java

Feredir

New Member
Joined
Jun 2, 2023
Messages
1
Reaction score
0
Credits
15
I'm trying to use MultiMC and it's telling me that I don't have a high enough Java version to run versions of Minecraft 1.18+. I checked my version using

Code:
java -version

and it says

Code:
openjdk version "11.0.19" 2023-04-18
OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1)
OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1, mixed mode, sharing)

I've tried so many different ways of updating, I got Java 20 openjdk .deb files and run that, I've done a ton of stuff in the terminal (not sure how much of it is useful to put in here but basically look up "linux mint update java" and the first 10+ links I've clicked on.

And despite all of this, including installing the packages for Java 20, it still says I have Java 11 on my computer, please help
 


You may need to run sudo update-alternatives --config javac and sudo update-alternatives --config java to update the default version of Java being used.

You also may need to set your JAVA_HOME in your .bashrc or .zshrc or whatever rc file for whatever shell you use, like this: JAVA_HOME="/usr/lib/jvm/java-1.11.0-openjdk-amd64/"
 

Members online


Top