Article 6HX9B dotnet sonarscanner did not find java but JAVA_HOME exists. Tried jre 11,13, 17 on ubuntu 20.04.3

dotnet sonarscanner did not find java but JAVA_HOME exists. Tried jre 11,13, 17 on ubuntu 20.04.3

by
Sunless
from LinuxQuestions.org on (#6HX9B)
Hello, everyone! I am starting proper command

~/project$ /usr/bin/dotnet sonarscanner end /d:sonar.login="admin" /d:sonar.password="user"

and got the java error on ubuntu 20.04.3

SonarScanner for MSBuild 5.2.2 Using the .NET Core version of the Scanner for MSBuild Post-processing started. Calling the SonarScanner CLI... Could not find 'java' executable in JAVA_HOME or PATH. The SonarScanner did not complete successfully 20:05:32.56 Post-processing failed. Exit code: 1

There are SonarQube 8.9.10 in docker and .net 5 global tool sonarscanner 5.2.2.

JAVA_HOME and PATH was set to the same java elf dynamic shared object with chmod +x. What's wrong? Thank you.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments