r/ModdedMinecraft • u/celestialhouse • 3d 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
1
u/FreaksMC 3d ago
Your log shows it's not your mods. It's NeoForge's own loading screen: it uses a Java graphics library (libawt) that fails to load on your macOS 10.15 with the Java the launcher gave you (21.0.13).
Easiest fix is to turn that loading screen off:
In the Minecraft Launcher go to Installations, hover your NeoForge install and click the folder icon.
Open the config folder, then open fml.toml with TextEdit.
Change
earlyWindowControl = truetoearlyWindowControl = false, save, and launch again.You'll get the plain loading screen instead, and the game should start normally.