Skip to main content
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.ExceptionInInitializerError

How 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

  1. Open the crash report
  2. Look past ExceptionInInitializerError to the 'Caused by' line
  3. Address the root cause (missing file, wrong version, etc.)
  4. 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.

Related Errors

Need More Help?