# I can not install elasticsearch

**URL:** https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368
**Category:** Elasticsearch
**Created:** [March 28, 2017, 8:11pm UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368 "2017-03-28T20:11:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Gilberto](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@Gilberto](https://discuss.elastic.co/u/Gilberto)
#### Post date: [March 28, 2017, 8:11pm UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368/1 "2017-03-28T20:11:39Z")

</div>

May I install elasticsearch 5.2.2 on Windows 10?

---

<div class="post-metadata">

### Author: ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)
#### Post date: [March 28, 2017, 8:12pm UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368/2 "2017-03-28T20:12:26Z")

</div>

Yes, you should be able to install all versions of Elasticsearch on Windows

---

<div class="post-metadata">

### Author: ![Gilberto](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@Gilberto](https://discuss.elastic.co/u/Gilberto)
#### Post date: [March 28, 2017, 8:30pm UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368/3 "2017-03-28T20:30:38Z")

</div>

thank you for your answer  
I have been trying to install on my laptop but when trying to run the file elasticsearch.bat I get the error "the syntax of the command is not correct"

Thank you for any help

---

<div class="post-metadata">

### Author: ![ozersubasi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ozersubasi/32/16821_2.png) [@ozersubasi](https://discuss.elastic.co/u/ozersubasi)
#### Post date: [March 28, 2017, 8:45pm UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368/4 "2017-03-28T20:45:23Z")

</div>

Yes, you can.  
I create file at C:/elk/ and unzip to there  
write this commands at commandline or powershell;

 ![](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6d9061554c61dc4068b65d6d2e389047fd3dce.jpg)

---

<div class="post-metadata">

### Author: ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)
#### Post date: [March 28, 2017, 11:39pm UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368/5 "2017-03-28T23:39:16Z")

</div>

Gilberto Caviativa writes:

> I have been trying to install on my laptop but when trying to run the  
> file elasticsearch.bat I get the error "the syntax of the command is  
> not correct"

Can you paste in exactly what commands you are running to start  
Elasticsearch?

---

<div class="post-metadata">

### Author: ![Leon\_Nell](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@Leon\_Nell](https://discuss.elastic.co/u/Leon_Nell)
#### Post date: [April 4, 2017, 9:43am UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368/6 "2017-04-04T09:43:42Z")

</div>

Have you installed Java as per the following link: [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_installation.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html)

Once installed, create the environment variable with the following Powershell command:

$env:JAVA\_HOME = "c:\Program files\Java\you\_java\_version"

Once done, try running elasticsearch ([https://www.elastic.co/guide/en/elasticsearch/reference/current/windows.html#windows-running](https://www.elastic.co/guide/en/elasticsearch/reference/current/windows.html#windows-running))

or install as a service ([https://www.elastic.co/guide/en/elasticsearch/reference/current/windows.html#windows-service](https://www.elastic.co/guide/en/elasticsearch/reference/current/windows.html#windows-service))

---

<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: [May 2, 2017, 9:43am UTC](https://discuss.elastic.co/t/i-can-not-install-elasticsearch/80368/7 "2017-05-02T09:43:55Z")

</div>

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