JAVA_HOME exists but does not point to a valid Java home on Run Code Analysis

  • SonarScanner for Azure Devops: Version 4.25.0

  • Error observed

    2022-01-31T10:57:00.2250211Z ERROR: JAVA_HOME exists but does not point to a valid Java home
    2022-01-31T10:57:00.2250519Z folder. No "\bin\java.exe" file can be found there.

  • Steps to reproduce

    1. When I Run Code Analysis on Azure Pipeline it fails and show error above

I am facing the same error.
Were you able to get a workaround of this?