After having downloaded elasticsearch and unzipped it following the steps in this link:
Install Elastic Search on Windows
I am receiving the following error: >
I faced this issue while running SonarQube Server on my local machine.
If none of the above solution works just check the SonarQube Version you are using and the JDK version it runs on which is mentioned on the SonarQube site.
Mine was SonarQube 7.9.3 https://docs.sonarqube.org/latest/requirements/requirements/
Changing JDK 15.0.1 to 11.0.9 Fixed the issue.