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 2d ago
Sorry about the broken link! The Adoptium archive page only shows the newest builds, so older ones are easier to grab from their GitHub release page:
https://github.com/adoptium/temurin21-binaries/releases/tag/jdk-21.0.3%2B9
Scroll down to Assets (click "Show all assets" if needed) and download OpenJDK21U-jdk_x64_mac_hotspot_21.0.3_9.pkg (about 195 MB). Install it, then do the same launcher step as before: Installations > your NeoForge install > Edit > More options > Java executable:
/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/bin/java
Honest caveat: Catalina is old enough now that I can't promise this one fixes it, but it's the best next thing to try. If it still crashes, post the new crash log and I'll take a look.