2
Title basically says it all, Can I use Java 16 or 17 to play mods that require Java 8? I'd like to use Worldedit and forge for 1.18 to make maps build stuff essentially.
As well as that, could older versions, such as java 16, work if I use java 17?
As well as that, could older versions, such as java 16, work if I use java 17?
Create an account or sign in to comment.
12
Minecraft Forge 1.12. 2, when installing Minecraft server, Minecraft client, and Forge, Java 8 needs to be the system default Java. Multiple Java versions can be run reliably and simultaneously.
garageband
garageband
It didn't need to be the default; you can always use an absolute path to refer the desired JRE launcher executable, such as /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java.
Java programs themselves are usually upwards compatible as lloyddominic said, but Minecraft mods aren't. You can't use a mod made for Minecraft 1.12 in 1.18 or vice versa. Mods have to be made for the version of Minecraft that you want to use. If you were trying to figure out a way to use 1.12 mods in 1.18, you can't do that.
nope, just 1.12 mods running using 16 or 17, the title's a bit wrong
Java is upwards compatible, so programs written on an old version of Java will work on a newer version of Java.
Source:
https://stackoverflow.com/questions/22610400/can-program-developed-with-java-8-be-run-on-java-7
Source:
https://stackoverflow.com/questions/22610400/can-program-developed-with-java-8-be-run-on-java-7
aight, thanks for the info, greatly appreciated
Usually you can but sometimes Java is annoying and will require a specific version. I'd say go ahead and try with the latest version - if not just download the version you need and install it.
can I use multiple versions of java?
will both versions of mods work?
will both versions of mods work?
You can have multiple versions of Java installed on your computer, but you can only use one of them.
ah ok