Could not find 'java' executable in JAVA_HOME or PATH?

I have installed 9.9 version sonarqube on linux, getting this error:

Dsonar.projectBaseDir=/var/lib/jenkins/workspace/Cicd’ - not integrating. [
Cicd] $ /var/lib/jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonarqube/bin/sonar-scanner ******** "-Dsonar-scanner=-Dsonar.projectKey=hk-backend-evolved -Dsonar.sources=. -Dsonar.projectBaseDir=/var/lib/jenkins/workspace/Cicd
Could not find ‘java’ executable in JAVA_HOME or PATH. ERROR:
SonarQube scanner exited with non-zero code: 1

Can you help me out with this please?

Hi,

This is a question of where / how Java is installed and made available to the rest of your system.

 
HTH,
Ann