title: Windows 10: can not run Eclipse. Error: 'Could not create the Java Virtual Machine'
body: <p>I have been successfully using eclipse on Windows 7 and moved to Windows 10. I have:</p>
  
  <ol>
  <li>Installed jre1.8.0_121</li>
  <li>added JAVA_HOME and java to Path</li>
  <li>copy-pasted the old eclipse directory to the newly installed windows 10</li>
  </ol>
  
  <p>Now trying to launch it but there is an error:</p>
  
  <p><a href="https://i.stack.imgur.com/qKAk9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qKAk9.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/MFYaC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MFYaC.png" alt="enter image description here"></a></p>
  
  <p>Here is my eclipse.ini file:</p>
  
  <pre><code>-startup
  plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
  --launcher.library
  plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120913-144807
  -showsplash
  org.eclipse.platform
  --launcher.XXMaxPermSize
  256m
  --launcher.defaultAction
  openFile
  -vmargs
  -Xms40m
  -Xmx512m
  -vm "C:\Program Files (x86)\Java\jre1.8.0_121\bin\javaw.exe"
  </code></pre>
  
  <p>Things I tried:</p>
  
  <ol>
  <li>Adding "-Dosgi.requiredJavaVersion=1.8"</li>
  <li>Trying things from post <a href="https://stackoverflow.com/questions/7302604/eclipse-error-failed-to-create-the-java-virtual-machine">like this</a> but it did not work (probably because it refers to windows7)</li>
  </ol>
  
  <p>Please advice.
  Thanks!</p>