问题
After having downloaded elasticsearch and unzipped it following the steps in this link:
Install Elastic Search on Windows
I am receiving the following error:
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.
Note: I also had to install the JDK8 as suggested in this resolution
Should I change something in the .config file? Maybe this line?
# force the server VM (remove on 32-bit client JVMs)
-server
回答1:
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
回答2:
Quick (hack) alternative:
- Copy
jdk1.8.0_131\bin\clienttojdk1.8.0_131\bin\server - If necessary, configure Elasticsearch JVM heap size in
config/jvm.options
回答3:
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)
回答4:
I solved my issue editing that line of file jvm.options from:
# force the server VM
-server
to:
# force the server VM
-client
来源:https://stackoverflow.com/questions/44551961/elasticsearch-installation-error-missing-server-jvm-at-jvm-dll