0

Error Message I am getting a error: Unsupported class file major version 61 while running command: mvn clean install -DskipTests

This error occurs when the program is running on java versions below JDK 17.

JDK is set to version 17 ,still i am getting this error.

Please let me know what I am missing!!

Hancy
  • 11
  • 2
  • If you like to use recent JDK's use most recent versions of plugin instead of old ones https://maven.apache.org/plugins/ because version 3.6.0 is of 2018!... – khmarbaise Jun 12 '23 at 11:00
  • Make sure the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Runner | **JRE** is set to a JDK not lower than 17 version. – Andrey Jun 13 '23 at 12:25
  • Worked for me by adding the plugin mentioned here : https://stackoverflow.com/questions/60861485/maven-plugin-plugin3-2descriptor-failed-index-22273-out-of-bounds-for-length – Hancy Jun 14 '23 at 06:16

0 Answers0