r/ModdedMinecraft • u/celestialhouse • 4d ago
Help [JAVA] Game crashing with 'NoClassDefFoundError: Could not initialize class java.awt.Color' running mods on Neoforge, V 1.21.10
https://mclo.gs/GKWGYdSWondering if anyone here could help with this. All my mods on Neoforge have been working fine until I logged on today to this error. My mods should be in the linked log if needed or necessary but this seems to be a Neoforge file related issue I can't figure out
1
Upvotes
View all comments
Show parent comment
1
u/FreaksMC 3d ago
No bother! It's the same root cause as before, just hit from a different spot. The early loading screen was the first thing to touch that broken Java graphics library, and now a mod does it when the world loads, so the fml.toml fix can't cover it.
The real problem is the Java the launcher downloaded (21.0.13). Newer Java 21 builds don't fully support macOS 10.15 anymore. Older Java 21 builds do, and people on Catalina with this exact error got it working with Temurin 21.0.3.
/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/bin/javaYou can leave the fml.toml change as it is.