# Windows Install Newbie- Installing Elasticsearch using Zip

**URL:** <https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316>\
**Category:** Elasticsearch\
**Created:** [November 4, 2018, 9:48pm UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316 "2018-11-04T21:48:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![alta\_01](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@alta\_01](https://discuss.elastic.co/u/alta_01)\
**Post date:** [November 4, 2018, 9:48pm UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316/1 "2018-11-04T21:48:27Z")

</div>

My issue before after extracting was that I kept getting the "\Common was unexpected at this time" in the cmd prompt. I was able to get this to work using the following fix.

[\Common was unexpected at this time](https://discuss.elastic.co/t/cannot-start-elasticsearch/129779/4)

I've attached what my environment variable looks like for Java since I set it in Windows for anyone having a similar issue.

![PrtScr%20capture](https://us1.discourse-cdn.com/elastic/original/3X/c/d/cd71f14f82d1ecce02bb9d383815e6e7f1385fed.jpeg)

After this I ran the ElasticSearch .bat file. Resulting in some content being displayed, but unfortunately I cannot successfully curl the localhost:9200 port. This is a dump of the current logs. I have removed my name from the file and replaced them with [Redacted]. I actually ran the bat file a few times you can see from the logs repeating, but I still cannot curl the localhost port.

Here's a pastebin with the logs: [Paste Bin for Windows Error Logs](https://pastebin.com/PhZPWRnr)

Version of Java being used is jre1.8.0\_191

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [November 4, 2018, 10:08pm UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316/2 "2018-11-04T22:08:07Z")

</div>

It looks like the issue now is related to attempting to run the Machine Learning features on 32 bit Windows, looking at the log file; Machine Learning is only available on 64 bit OS, so you should edit the elasticsearch.yml file in the config directory to disable it

```auto
xpack.ml.enabled: false

```

Then try starting Elasticsearch again with the bat file from the command line.

---

<div class="post-metadata">

**Author:** ![alta\_01](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@alta\_01](https://discuss.elastic.co/u/alta_01)\
**Post date:** [November 4, 2018, 10:32pm UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316/3 "2018-11-04T22:32:25Z")

</div>

Thanks for the assist @forloop  
I am running a 64 bit OS currently, but have I grabbed the wrong installer by chance?

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [November 4, 2018, 10:53pm UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316/4 "2018-11-04T22:53:35Z")

</div>

It may be that you have a 32 bit version of Java installed. If you run the following from the command line

```auto
java --version

```

What does it return?

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [November 5, 2018, 4:13am UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316/6 "2018-11-05T04:13:45Z")

</div>

> [@alta\_01](#):
>
> ```auto
> C:\Program Files\Java\jdk1.8.0_191\\bin\java.exe
> 
> ```

Looks like the environment variable may end in `\` (double `\\` before bin)? I'm not sure if this is the cause of the error, but if the environment variable does end in `\`, it may be worth removing it and trying again first.

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [November 5, 2018, 6:46am UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316/8 "2018-11-05T06:46:49Z")

</div>

What does

```auto
java --version

```

return?

---

<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:** [December 3, 2018, 6:57pm UTC](https://discuss.elastic.co/t/windows-install-newbie-installing-elasticsearch-using-zip/155316/10 "2018-12-03T18:57:16Z")

</div>

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