#Moved my project to a new computer, I get this error when compiling

2 messages · Page 1 of 1 (latest)

scenic ginkgo
#

I am using java 21

23:32:41] [main/WARN] (FabricLoader/Mixin) Error loading class: java/util/Optional (java.lang.IllegalArgumentException: Unsupported class Caused by: java.lang.RuntimeException: Mixin transformation of net.minecraft.entity.player.PlayerEntity failed
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: java.util.Optional
#

gradle.properties file

# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
    # check these on https://fabricmc.net/versions.html
    minecraft_version=1.16.2
    yarn_mappings=1.16.2+build.47
    loader_version=0.12.3

# Mod Properties
    mod_version = 1.0.0
    maven_group = smokeytube.dlang
    archives_base_name = dlang

# Dependencies
    fabric_version=0.40.6+1.16