halaray goldya nantay

0 views
Skip to first unread message

Mike Fowler

unread,
Aug 2, 2024, 8:40:09 PM8/2/24
to taicontlute

The error message "dotnet sonarscanner did not find java but JAVA_HOME exists" indicates that the SonarScanner for MSBuild is unable to locate the Java executable even though the JAVA_HOME environment variable is set correctly. This can be caused by a few different factors, including:

This will print the contents of the PATH variable to the console. Make sure that the bin directory of your Java installation is in the list of directories. If it is not, add it to the end of the PATH variable using the following command:

This will print the file type of the java executable. Make sure that the file type is "executable" and that the executable bit is set. If the file type is not "executable", try changing the file permissions using the following command:

c01484d022
Reply all
Reply to author
Forward
0 new messages