Unsupported class file major version 54 exception in Java

Problem

Given the following Exception:

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

Why is this Exception thrown?

Solution

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