Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 2.33 KB

java-things.md

File metadata and controls

48 lines (31 loc) · 2.33 KB

This section covers Java versions for each of the supported versions of Minecraft.

Some benchmarks for those interested

1.18.2+

Java Notes
GraalVM Java 24 Best performance and Generational ZGC support

1.16.5

NOTE: Running 1.16.5 with Java versions newer than 8 is only possible with ModernFix' JVM arguments. Not all mods may work though, so if you find an incompatible one, switch back to Java 8.

Java Notes
GraalVM Java 21 Best raw performance, shortest loading times
Adoptium Java 21 Generational ZGC support (greatly reduces stutters but requires more RAM)
Adoptium Java 8 Best mod compatibility

1.12.2

NOTE: Running 1.12.2 with Java versions newer than 8 is only possible with Cleanroom Loader. If you find a mod that doesn't work with it, report it to their issue tracker.

Java Notes
GraalVM Java 24 Best performance and Generational ZGC support

1.7.10

NOTE: Running 1.7.10 with Java versions newer than 8 is only possible with LWJGL3ify.

Java Notes
GraalVM Java 21 Best raw performance, shortest loading times
Adoptium Java 21 Generational ZGC support (greatly reduces stutters but requires more RAM)

Additional notes

If you're on a version which supports Java 21 (or newer) and your PC has at least 16 GB of RAM, I'd recommend Adoptium JDK 21 with these args:

-XX:+UseZGC -XX:+ZGenerational

If you're on Java 24 or above, you only need -XX:+UseZGC since non-Generational ZGC was removed, making the -XX:+ZGenerational argument redundant

If you are on a lower-end device and/or you have a total of 8 GB of RAM or less, stick to GraalVM without any JVM args.