criticalJava ErrorsAffects: All versions
How to Fix ExceptionInInitializerError
Fix ExceptionInInitializerError by reading the 'Caused by' section in the stack trace and addressing the root cause.
Quick Fix
Check the 'Caused by' section in the stack trace for the real error. Fix that underlying issue.
Error Message
java.lang.ExceptionInInitializerErrorHow to Fix
1
Read the full stack trace, focusing on the 'Caused by' section
2
Update or reinstall the offending mod
3
Delete the mod's config file to regenerate defaults
4
Verify Java version compatibility
Common Causes
- A mod's static initializer threw an exception
- Missing native library or system resource
- Incompatible Java version for the mod
- Corrupted mod configuration
Diagnostic Steps
- Open the crash report
- Look past ExceptionInInitializerError to the 'Caused by' line
- Address the root cause (missing file, wrong version, etc.)
- Restart
FAQ
Why does the error not tell me what went wrong?
ExceptionInInitializerError is a wrapper. The real error is in the 'Caused by' section below it in the stack trace.