Module Conflict between "幻想乡电台|CraftGR" and playerAnimator's Support Library
Minecraft Version: 1.20.1 (Forge)
Mods Involved:
幻想乡电台|CraftGR
playerAnimator (and its support library)
Crash Trigger:
text
at cpw.mods.modlauncher.ModuleLayerHandler.buildLayer
at cpw.mods.modlauncher.TransformationServicesHandler.buildTransformingClassLoader
Error Log:
text
Exception in thread "main" java.lang.reflect.InvocationTargetException
Caused by: java.lang.module.ResolutionException:
Modules jlayer and craftgr export package javazoom.jl.player to module itemfilters
Problem Analysis
Root Cause:
A module conflict crashed Java’s module system. Two distinct modules (jlayer and craftgr) attempted to export the same Java package (javazoom.jl.player) to the itemfilters module, violating Java’s "single-exporter rule" for modules.
Key Details:
jlayer (likely from playerAnimator’s dependencies) and craftgr (from 幻想乡电台|CraftGR) both claim ownership of javazoom.jl.player.
The conflict arises during Forge’s core loading phase (ModLauncher), specifically when building the module layer.
This is not memory-related (8GB allocated) but strictly a module compatibility issue.
ℹ️ Note: I lack advanced diagnostic tools; this analysis is based on observed logs.
Reproduction Steps:
Install CraftGR and playerAnimator (with its support library).
Launch Minecraft 1.20.1 via Forge 47.4.0.
Crash occurs immediately during mod loading.
Consequence: Normal configuration cannot start the game
Urge (can be ignored):
I found 5 excellent mods that rely on this support library in Minecraft Chinese Mod Encyclopedia, because Minecraft Chinese Mod Encyclopedia does not have an official operator to add pages, so all of them are mostly excellent mods (no one would be so idle and add a bunch of useless garbage)
Machine translation may encounter errors
Sorry, but I don't currently support this mod for older Minecraft versions due to my own time constraints. I am hoping to eventually make an LTS branch to support popular past versions, but I haven't got enough time to set up that yet.
I will keep this issue open until I get around to do that eventually.
same problem in minecraft 1.21.1,but craftgr conflict with l2 series mods. Also jlayer problem: [main/ERROR] [cpw.mods.modlauncher.ModuleLayerHandler/]: Error while resolving modules. java.lang.module.ResolutionException: Modules craftgr and jlayer export package javazoom.jl.converter to module l2library