Which Java Version Does a JAR Need? Check Class Versions

Check a JAR's Java compatibility from an UnsupportedClassVersionError or its class files' major version, for one class or the whole JAR. Java 8 to 21 examples.

First, Check the Java You Are Running

Read the Error Message

Inspect a JAR Without Running It

Check Java Compatibility for the Whole JAR

Checking the JAR's Own Version Instead?

If the Version Looks Right but the JAR Still Fails