I am trying to configure for the first time SonarCloud with Debian 9 for a Java project hosted on GitHub. I have downloaded sonar-scanner-cli 220.127.116.110 and added the
/bin folder to the
$PATH evnironment variable, as requested.
After having followed all the steps required, when I run the
sonar-scanner command, with or without the suggested parameters, I obtain:
Could not find 'java' executable in JAVA_HOME or PATH.
But both variables are correctly set, I’m trying all the possible combinations of both variables but it does not seem to work. I’m pretty new to SonarCloud, so I ask if someone can give me any suggestion on how to solve this problem.