/mods, the server may stop during startup.
Identify the incompatible mod
- Start the server once and read the first relevant error in the console.
- Look for a mod name near messages such as
requires environment type CLIENT,invalid dist DEDICATED_SERVER,NoClassDefFoundError, orClassNotFoundException. - Compare the named file or mod ID with the files in
/mods. - Check the mod author’s page to confirm whether it is client-only or has a separate server-compatible release.
Remove and test
1
Stop the server
Leave it stopped while changing mod files.
2
Keep a copy
Download the suspected
.jar or move it outside /mods so you can restore it if the diagnosis is wrong.3
Start once
Start the server and watch the full startup. If it fails again, diagnose the new first relevant error rather than removing several files at once.
4
Check player clients
Keep client-only mods on player devices when desired. Server-required mods and dependencies must remain compatible on both sides when the mod author requires them.
