title: Cannot install elasticsearch 5.1.1 on windows 10 with java 8
body: <p>I am attempting to install ElasticSearch 5.1.1 on my windows 10 's laptop with java 8.111 installed.</p>
  
  <p>when I try to install Elastic search that triggers an error</p>
  
  <p>C:\Users\userName\Downloads\elasticsearch-5.1.1\elasticsearch-5.1.1>.\bin\elasticsearch</p>
  
  <p>Displays me that error message  : </p>
  
  <pre><code>Error: missing `server' JVM at `C:\Program Files (x86)\Java\jre1.8.0_111\bin\server\jvm.dll'.
  Please install or use the JRE or JDK that contains these missing components.
  </code></pre>
  
  <p>I found a <a href="https://stackoverflow.com/questions/18123144/missing-server-jvm-java-jre7-bin-server-jvm-dll">fix</a> for that type of error with java . That consist in creating a folder server and to copy paste jvm.dll into. 
  But it should be avalaible for java 7 cause if I try that fix and I launch the installation again I have now the error message:</p>
  
  <pre><code>Error occurred during initialization of VM
  Could not reserve enough space for 2097152KB object heap
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/E7hMc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E7hMc.png" alt="enter image description here"></a></p>
  
  <p>If has no sens cause I have 8 go of RAM</p>
  
  <p>Do you have idea about what I should do to install ElasticSearch?</p>