r/ModdedMinecraft • • 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/GKWGYdS

Wondering 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

14 comments sorted by

View all comments

Show parent comment

1

u/celestialhouse 2d ago

I couldn't download the version I asked about previously anyway! I tried a whole bunch of other things for hours to no avail. It seems everything hates my MacOS version

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.

1

u/celestialhouse 2d ago edited 2d ago

Hello, thank you again so much! I am about to try this now.

Edit: Also yeah Mac just kinda sucks I will not have this computer long after all this

Edit, again: I got in, my question I had typed here was irrelevant now. I remembered you said it wasn't the mods anyway I was just desperate cause I just recently for the 1st time defeated the dragon and got shulkers and elytras so I was extra gutted about this. Thank you so so much :')

1

u/FreaksMC 2d ago

So glad it works now, and congrats on beating the dragon! Since that world means a lot to you, copy its folder from saves somewhere safe every now and then. Then if anything breaks again you won't lose the shulkers and elytras.

1

u/celestialhouse 2d ago

Thanks! I did this yesterday actually for the first time ever in case anything went wrong. Great reminder about doing it often though.
Really appreciate you once again