# Error occurred during initialization of VM

**URL:** <https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm/182253>\
**Category:** Elasticsearch\
**Created:** [May 22, 2019, 2:41pm UTC](https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm/182253 "2019-05-22T14:41:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JRb](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JRb](https://discuss.elastic.co/u/JRb)\
**Post date:** [May 22, 2019, 2:41pm UTC](https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm/182253/1 "2019-05-22T14:41:57Z")

</div>

I have a Windows10 Machine...

I installed the MSI version.

Then when I attempt to start elasticsearch I get this error:

C:\Program Files (x86)\Elastic\7.1.0\bin\>.\elasticsearch.exe  
Error occurred during initialization of VM

I've also looked at similar errors with Logstash, and others, and those don't seem to be working.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 22, 2019, 2:46pm UTC](https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm/182253/2 "2019-05-22T14:46:29Z")

</div>

What does `java --version` return?

---

<div class="post-metadata">

**Author:** ![JRb](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@JRb](https://discuss.elastic.co/u/JRb)\
**Post date:** [May 22, 2019, 2:50pm UTC](https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm/182253/3 "2019-05-22T14:50:40Z")

</div>

I originally had 10, but then installed 8, and then got some messages saying security risk using out dated software.

So, I downloaded 12, and as you asked this question. I typed java --version

and got this:  
Error: Could not create the Java Virtual Machine.  
Error: A fatal exception has occurred. Program will exit.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 19, 2019, 2:50pm UTC](https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm/182253/4 "2019-06-19T14:50:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
