Installing Elasticsearch: error missing JVM "server" in ... jvm.dll

After loading elasticsearch and unzip it, following the instructions in this link:

Install Elastic Search on Windows

I get 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 JDK8 as suggested in this resolution

Do I have to change something in the .config file? Maybe this line?

 # force the server VM (remove on 32-bit client JVMs)
 -server
+6
source share
4 answers

Set the environment variable JAVA_HOMEto indicate the path to your JDK 8 installation .

This can be done on the command line, as shown in the following example:

SET JAVA_HOME="C:\Program Files (x86)\Java\jdk1.8.0_131"
SET PATH=%JAVA_HOME%\bin;%PATH%

, JDK PATH :

javac -version

+2

, 64- Java JRE.

JAVA_HOME. ( C:\Program Files\Java\jre1.8.0_131)

+4

() :

  • jdk1.8.0_131\bin\client jdk1.8.0_131\bin\server
  • JVM Elasticsearch config/jvm.options
+2

jvm.options :

# force the server VM
-server

# force the server VM
-client
0

All Articles