# Issue with installing elasticsearch in windows 8.1

**URL:** <https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160>\
**Category:** Elasticsearch\
**Created:** [July 11, 2016, 7:02am UTC](https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160 "2016-07-11T07:02:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehran](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@Mehran](https://discuss.elastic.co/u/Mehran)\
**Post date:** [July 11, 2016, 7:02am UTC](https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160/1 "2016-07-11T07:02:22Z")

</div>

I'm running Windows 8.1 on my laptop and I tried to install elastic search but I'm getting the following error :  
\Java\jdk1.7.0\_45\bin\java.exe was unexpected at this time.  
after this error appeard I installed oracle jdk 8 update 45 and set the java\_home and path but still I'm getting the same error  
what should I do ?  
thanks ...

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 11, 2016, 7:58am UTC](https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160/2 "2016-07-11T07:58:47Z")

</div>

> [@Mehran](#):
>
> jdk1.7.0\_45

You mean? the exact same error?

Did you restart the CMD window?  
May be a PATH issue?

Which elasticsearch version?

---

<div class="post-metadata">

**Author:** ![Mehran](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@Mehran](https://discuss.elastic.co/u/Mehran)\
**Post date:** [July 11, 2016, 12:57pm UTC](https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160/3 "2016-07-11T12:57:02Z")

</div>

excuse me because I didn't fill the data completely ...  
the version of elasticsearch is 5.0.0-alpha4 and the error that I mentioned to was exact error that I got  
and I'm sure that I have set the PATH value correctly  
but now another error is appearing ...  
Error occurred during initialization of VM  
Could not reserve enough space for 2097152KB object heap  
I have tried [this](https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm-could-not-reserve-enough-space-for-1048576kb-object-heap-elasticsearch/33999/1)link but it didn't worked for me ....  
My machine configuration :  
wndows 8.1 64bit  
4 GB ram

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 11, 2016, 7:59pm UTC](https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160/4 "2016-07-11T19:59:37Z")

</div>

May be you have some other services running on Windows and you don't have 2Gb of free RAM available?

---

<div class="post-metadata">

**Author:** ![Mehran](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@Mehran](https://discuss.elastic.co/u/Mehran)\
**Post date:** [July 12, 2016, 5:56am UTC](https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160/5 "2016-07-12T05:56:15Z")

</div>

Yes thanks you were right ...

---

<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:** [July 5, 2017, 10:36pm UTC](https://discuss.elastic.co/t/issue-with-installing-elasticsearch-in-windows-8-1/55160/6 "2017-07-05T22:36:21Z")

</div>


