I've tried to do your solution above and can see that it executes it (in the build log)
set PATH=C:\Program Files\Java\jdk15\bin;%PATH%
But it still complaints about the JDK (I'm using image "Visual Studio 2019") - what have I done wrong?
"The version of Java (1.8.0_221) you have used to run this analysis is deprecated and we stopped accepting it.
Please update to at least Java 11. You can find more information here: https://sonarcloud.io/documentation/upcoming"