Elasticsearch installation : Error missing 'server' JVM at …jvm.dll

橙三吉。 提交于 2019-12-31 22:09:12

问题


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:

  1. Copy jdk1.8.0_131\bin\client to jdk1.8.0_131\bin\server
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!