Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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
like image 954
BassMHL Avatar asked Jun 14 '17 18:06

BassMHL


1 Answers

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

like image 87
Saheed Avatar answered Oct 23 '22 09:10

Saheed