Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elementa UI Library Not Working - NoClassDefFoundError when Opening WindowScreen in Forge 1.20.1 #161

Open
xI-Mx-Ix opened this issue Mar 19, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@xI-Mx-Ix
Copy link

xI-Mx-Ix commented Mar 19, 2025

I am encountering an issue when trying to open a WindowScreen in Forge 1.20.1 using the Elementa UI library. Every time I attempt to do so, I get the following error:

Caused by: java.lang.NoClassDefFoundError: gg/essential/elementa/WindowScreen Caused by: java.lang.ClassNotFoundException: gg.essential.elementa.WindowScreen

I’ve tried several versions of Elementa as well as UniversalCraft, but the issue persists.

The WindowScreen should open without any issues, without throwing the NoClassDefFoundError.

  • Minecraft Version: 1.20.1
  • Forge Version: 47.4.0
  • Elementa Version: every version
  • UniversalCraft Version: every version
  • Java Version: 17

Image

Note: I am using Java for my mod development, even though the Elementa library is written in Kotlin.

I also searched for Forge versions in Maven, but whenever I used them, I encountered the same error. Additionally, when I tried using fg.deobf, it didn't work either because the Forge versions didn’t have a mods.toml file.

@xI-Mx-Ix xI-Mx-Ix added the bug Something isn't working label Mar 19, 2025
@Deftu
Copy link

Deftu commented Mar 19, 2025

Are you experiencing this crash/error in production or in the developer environment?

@xI-Mx-Ix
Copy link
Author

xI-Mx-Ix commented Mar 19, 2025

in development environment

@xI-Mx-Ix
Copy link
Author

Elementa 695 is a Fabric mod and cannot be loaded in Forge. I tried a Forge version (1.18.1), and it loaded successfully:

implementation(fg.deobf("gg.essential:elementa-1.18.1-forge:657"))
implementation(fg.deobf("gg.essential:universalcraft-1.20.1-forge:381"))

But the same error occurred.The Forge classloader can't find it for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants