java.lang.UnsupportedClassVersionError

Overview

The following error is received when using auth0-java SDK version 1.24.0 on Java 7.

java.lang.UnsupportedClassVersionError: com/auth0/IdentityVerificationException: Unsupported major.minor version 52.0 (unable to load class com.auth0.IdentityVerificationException)

Applies To

  • Java 7
  • SDK

Cause

The error java.lang.UnsupportedClassVersionError will be thrown by the Java ClassLoader when a Java application requires a version of Java later than the one being used.

Solution

The minimum support auth0-java version is Java 8, as in the requirements.

Using any older versions of our SDKs is not recommended because they are likely security vulnerabilities through dependencies in older versions that are only patched in later versions, and Okta no longer supports old versions.

Related References