JAVA_HOME error in Sonar Scanner for MSBuild I have set up a sonar scanner MSBuild in Jenkins, but suddenly I'm getting below error.

ERROR: JAVA_HOME exists but does not point to a valid Java home
       folder. No "\bin\java.exe" file can be found there.


Below is Environment variable for Java Jdk

JAVA_HOME=C:\Program Files\Java\jdk-12.0.2


How to solve this Issue?
I have added "C:\Program Files\Java\jdk-12.0.2" as value of JAVA_HOME environment Variable and its working. I don't know exactly this is the correct solution OR Not, but when I have checked sonar-scanner.bat file then it's taking %JAVA_HOME%/bin/java.exe location of Java.