Unsupported class file major version 56 exception in Java

Problem

Given the following Exception:

java.lang.IllegalArgumentException: Unsupported class file major version 56

Why is this Exception thrown?

Solution

This exception is thrown because you are using classes compiled with Java 12 along with a library that doesn't support Java 12 yet.