DataFixerUpper icon indicating copy to clipboard operation
DataFixerUpper copied to clipboard

Java 8 Support

Open TheSerumDev opened this issue 1 year ago • 2 comments

It would be nice if you can add Java 8 support.

I got the following error if I am trying to build my Java 8 Project:

java: cannot access com.mojang.datafixers.util.Pair bad class file: /${PROJECT}/datafixerupper-8.0.16.jar!/com/mojang/datafixers/util/Pair.class class file has wrong version 61.0, should be 52.0 Please remove or make sure it appears in the correct subdirectory of the classpath.

TheSerumDev avatar Jan 10 '25 03:01 TheSerumDev

Why would you need it to support java 8? DO you wnat it to support older minecraft versions? MInecraft hasnt been using Java 8 for a while.

Kaloyan501 avatar Apr 18 '25 22:04 Kaloyan501

See this project here, it's a gradle plugin that allows you to use newer deps on older Java runtimes, or allows you to downgrade a Jar to an older runtime. https://github.com/unimined/JvmDowngrader

(Honestly though, if you're trying to build for a MC version that uses Java 17 at runtime, just use that Java runtime)

p0t4t0sandwich avatar Jun 06 '25 02:06 p0t4t0sandwich