2

Can 1.12 mods that require Java 8 work if I use Java 16 or 17?question_answer

Theotmt's Avatar Theotmt3/7/22 11:08 pm
2 emeralds 2.4k 12
4/2/2022 4:37 am
Low-power's Avatar Low-power
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?
Posted by Theotmt's Avatar
Theotmt
Level 34 : Artisan Architect
80

Create an account or sign in to comment.

12

Abrahams
03/11/2022 6:42 am
Level 1 : New Miner
history
Abrahams's Avatar
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
1
Low-power
03/11/2022 7:59 am
Level 37 : Artisan Miner
history
Low-power's Avatar
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.
1
Theotmt
03/11/2022 7:42 am
Level 34 : Artisan Architect
Theotmt's Avatar
Java's supposedly backwards compatible right?
1
Low-power
04/02/2022 4:37 am
Level 37 : Artisan Miner
Low-power's Avatar
But this version of FML relying some implementation details of JRE 6~8, which isn't compatible with newer JRE versions.
2
Geforce
03/08/2022 7:58 pm
Level 63 : High Grandmaster Modder
history
Geforce's Avatar
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.
2
Theotmt
03/08/2022 8:05 pm
Level 34 : Artisan Architect
history
Theotmt's Avatar
nope, just 1.12 mods running using 16 or 17, the title's a bit wrong
1
lloyddominic26
03/08/2022 10:16 am
Level 19 : Journeyman Birb
lloyddominic26's Avatar
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
3
Theotmt
03/08/2022 7:50 pm
Level 34 : Artisan Architect
Theotmt's Avatar
aight, thanks for the info, greatly appreciated
1
Karaoke
03/08/2022 9:06 am
Level 69 : High Grandmaster Witch
history
Karaoke's Avatar
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.
3
Theotmt
03/08/2022 9:30 am
Level 34 : Artisan Architect
Theotmt's Avatar
can I use multiple versions of java?

will both versions of mods work?
2
lloyddominic26
03/08/2022 10:18 am
Level 19 : Journeyman Birb
lloyddominic26's Avatar
You can have multiple versions of Java installed on your computer, but you can only use one of them.
3
Theotmt
03/08/2022 7:46 pm
Level 34 : Artisan Architect
Theotmt's Avatar
ah ok
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome