Run Code Analysis - Scanner - recent version of the Java Runtime (class file version 55.0)

Good day, I have the following inconvenience when I want to make the compilation.

Install into server:

  • SonarQube 9.4
  • Azure DevOps Server 2019
  • Java SDK 17.0.2
  • Java SDK 11.0.12
  • Java SDK 11.0.13

Environment Variables:

  • JAVA_HOME : “C:\Program Files\Java\jdk-17.0.2\bin\java”


  •\Program Files\Java\jdk-17.0.2\bin\java

sonarQube_running.txt (5.3 KB)
sonar_scanner_error.txt (7.1 KB)

I already tried many options, but I can’t find any answer.


You’re saying you have (only?) Java 11 and 17 installed, but the error message indicates that another - older - version of Java is being used. So the answer is to make sure your analysis task uses Java 11. I think the simplest way is to make sure it’s in the agent’s %PATH%.


I fix the issue.

change the JAVA_HOME

change the “Path”

change into "Control Panel → Programs → Java

into tab java → button find → {dir JRE} and check only the correct directory.

en el cmd coleque el comando “where java” y ya se mostraba el directorio correcto.

Restart the server and done.

muchas gracias.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.