Error: LinkageError occurred while loading main class org.sonarsource.scanner.cli.Main java.lang.Un

Error: LinkageError occurred while loading main class org.sonarsource.scanner.cli.Main
java.lang.UnsupportedClassVersionError: org/sonarsource/scanner/cli/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeed?
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeed?
ERROR: SonarQube scanner exited with non-zero code: 1
Finished: FAILURE

Hi,

SonarScanner 5.x and newer releases require Java 17.