legacy-knowledge-base
公開されました Jun. 30, 2025

Received "java.lang.IllegalArgumentException: Unsupported class file major version 65" when using JDK 21

written-by

Ally McGill

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • I encountered the following error when compiling my custom JSON Webservice Module with JDK 21. 
exception    "Unsupported class file major version 65"
throwable    "java.lang.IllegalArgumentException: Unsupported class file major version 65"

Environment

  • Liferay 2023.Q4.0

Resolution

  • Upgrade to Liferay version 2024.Q3.13+ or reach out through Liferay Help Center

 

 

 

 

did-this-article-resolve-your-issue

legacy-knowledge-base