After having downloaded elasticsearch and unzipped it following the steps in this link:
Install Elastic Search on Windows
I am receiving the following error:
Set your JAVA_HOME
environment variable to point to the path of your JDK 8 installation.
You can do this on the command line as the example below illustrates:
SET JAVA_HOME="C:\Program Files (x86)\Java\jdk1.8.0_131"
SET PATH=%JAVA_HOME%\bin;%PATH%
Confirm that the correct version of the JDK is in your PATH
with:
javac -version
Quick (hack) alternative:
jdk1.8.0_131\bin\client
to jdk1.8.0_131\bin\server
config/jvm.options
I had same issue:
Error: missing 'server' JVM at 'C:\Program Files (x86)\Java\jre1.8.0_131\bin\server\jvm.dll'. Please install or use the JRE or JDK that contains these missing components.
It got resolved just by setting java_home:
SET JAVA_HOME="C:\Program Files (x86)\Java\jdk1.8.0_131"
SET PATH=%JAVA_HOME%\bin;%PATH%
I solved this by installing Java JRE 64-bit.
And then setting the environment variable JAVA_HOME to this version. (In my case C:\Program Files\Java\jre1.8.0_131
)
I solved my issue editing that line of file jvm.options
from:
# force the server VM
-server
to:
# force the server VM
-client
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.