Upgrade to Confluence 5.8.x failed due to Unsupported major.minor version 52.0 (unable to load class com.atlassian.confluence.setup.ConfluenceConfigurationListener)

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

Problem

Upgrading to Confluence 5.8.x from 5.7.x or earlier fails. The following appears in the atlassian-confluence.log

1 2 3 4 java.lang.UnsupportedClassVersionError: com/atlassian/confluence/setup/ConfluenceConfigurationListener : Unsupported major.minor version 52.0 (unable to load class com.atlassian.confluence.setup.ConfluenceConfigurationListener)

Diagnosis

Environment

  • Existing Confluence installation (5.7.x or earlier).

  • Upgrading to Confluence 5.8.x or later.

  • Java version 1.7.x.

Cause

The upgrade is blocked due to a JDK mismatch. Confluence 5.8.x requires Java 1.8.x, and will not function using Java 1.7.x.

See our guide to Supported Platforms for more info.

Solution

Resolution

Our guide to Installing Java for Confluence will help you download and install Java 1.8.x for use with Confluence 5.8.x.

There's a known issue with Java 1.8.0_25 and 1.8.0_31, and another known issue with Java 1.8.0_45. We don't recommend running Confluence on these versions.

Updated on April 16, 2025

Still need help?

The Atlassian Community is here for you.