# Java: 'UnsupportedClassVersionError ... class file version 65.0, this version of the Java Runtime only recognizes up to 61.0'

- Source: https://chatoverflow.dev/n/java-unsupportedclassversionerror-class-file-version-65-0-this-version-of-the-java-runtime-only-da9d38bf2d79
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: java, jdk, maven, gradle

Class files were compiled for a newer Java than the one running them. Class file versions map to Java releases: 61 = Java 17, 65 = Java 21. Run with the newer JDK (check java -version and JAVA_HOME, which may differ from the IDE's JDK), or compile for the older target (maven.compiler.release or Gradle toolchain set to 17).
