# How do you install elastic search on Windows?

**URL:** <https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050>\
**Category:** Elasticsearch\
**Created:** [December 1, 2015, 1:35pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050 "2015-12-01T13:35:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 1, 2015, 1:35pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/1 "2015-12-01T13:35:28Z")

</div>

How do you install elastic search on Windows? I already have JDK 1.8.0, and Netbeans 8.0.2 in my computer. Will I need anything else in order to create an Auto complete Grammar checker?

---

<div class="post-metadata">

**Author:** ![jochen\_st](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jochen\_st](https://discuss.elastic.co/u/jochen_st)\
**Post date:** [December 1, 2015, 3:53pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/2 "2015-12-01T15:53:25Z")

</div>

The instructions provided on the elastic website are pretty clear. Just remember in most examples to switch the slash"/" to backslash "" and add a drive letter where appropiate. For every unix shell script there is an equally named Windows batch file provided.

For running as a service there is even a dedicated page: [https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service-win.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service-win.html)

Also make sure your environment (JAVA\_HOME, etc) is set up.

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 1, 2015, 4:39pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/3 "2015-12-01T16:39:23Z")

</div>

So, are the backslashes for Windows too or only for Unix? And which one should come first, the JAVA Home Environment, or the installation? I am using windows not Unix you might confuse me with those examples.

---

<div class="post-metadata">

**Author:** ![jochen\_st](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jochen\_st](https://discuss.elastic.co/u/jochen_st)\
**Post date:** [December 2, 2015, 9:34am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/4 "2015-12-02T09:34:01Z")

</div>

What I mean is, if the command in Elasticsearch documentation is like this:

```
$ bin/elasticsearch

```

on windows in command prompt you have to use

```
bin\elasticsearch.bat

```

instead.

For configuration entries in Elasticsearch documentation is like this

```
{path.home}/data

```

on Windows use

```
{path.home}\data

```

instead. Use a drive letter where appropiate.

You can check JAVA\_HOME environment by

```
echo %JAVA_HOME%

```

in command prompt. You should have JAVA\_HOME set before starting Elasticsearch.

---

<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:** [December 2, 2015, 9:57am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/5 "2015-12-02T09:57:49Z")

</div>

I'm really unsure about this:

> `{path.home}\data`

I would use `{path.home}/data` on windows as well if written in `elasticsearch.yml` file for example.

Correct me if I'm wrong.

---

<div class="post-metadata">

**Author:** ![jochen\_st](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jochen\_st](https://discuss.elastic.co/u/jochen_st)\
**Post date:** [December 2, 2015, 10:03am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/6 "2015-12-02T10:03:34Z")

</div>

Well, at least on our working installation we have

```
path.work: E:\ELK\var\tmp
path.logs: E:\ELK\var\log
path.data: ["E:\\ELK\\var\\data", "F:\\ELK\\var\\data", "G:\\ELK\\var\\data"]

```

I needed to make backslashes double when I made path.data into an array. Without I was getting error, which one sadly I forgot.

I didn't try with forward slashes at this point.

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 10:23am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/7 "2015-12-02T10:23:16Z")

</div>

I'm just a beginner. Am trying to build an Autocomplete Application that detects bad words, and places them with the good ones. I have two columns for that: one is for my poor grammar, while the other one is for the Good grammar. The first thing that am working on right now is to setup the environment variable for the JDK, because I cannot see it in the system environmental variable. So, I have found a link from Oracle on how to do it. Any heads up on that?

---

<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:** [December 2, 2015, 10:29am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/8 "2015-12-02T10:29:53Z")

</div>

> [@jochen\_st](#):
>
> Well, at least on our working installation we have
> 
> path.work: E:\ELK\var\tmp  
> path.logs: E:\ELK\var\log

I'm surprised this works well. Good to know.

---

<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:** [December 2, 2015, 10:31am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/9 "2015-12-02T10:31:18Z")

</div>

> [@nqioweryuadfge](#):
>
> The first thing that am working on right now is to setup the environment variable for the JDK, because I cannot see it in the system environmental variable.

Sorry. What error message do you have?

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 10:35am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/10 "2015-12-02T10:35:50Z")

</div>

I have copied this on the systems environment variable:

C:\Java\jdk1.7.0\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem

Would I be wrong to do it? Because that is the code I have found on ORACLE. The only thing that I have adjusted is the JDK 1.7.0 to JDK 1.8.0, which is what am using.

When I used this command:

echo %JAVA\_HOME%

The link I pasted was the result I found on the output!

Check the link here and tell me if I was wrong!

[https://docs.oracle.com/javase/tutorial/essential/environment/paths.html](https://docs.oracle.com/javase/tutorial/essential/environment/paths.html)

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 10:43am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/11 "2015-12-02T10:43:08Z")

</div>

I would like to edit your documentation so that people will not ask these kinds of questions again! If you offer the proper support that is!

---

<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:** [December 2, 2015, 10:53am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/12 "2015-12-02T10:53:38Z")

</div>

> [@nqioweryuadfge](#):
>
> I have copied this on the systems environment variable:
> 
> C:\Java\jdk1.7.0\bin;C:\Windows\System32;C:\Windows;C:\Windows\System32\Wbem

Well. In path? Or in JAVA\_HOME?  
If JAVA\_HOME then it's totally incorrect.

What I often do on windows (if my memory deserves well):

```
JAVA_HOME=C:\Java\jdk1.8.0\
PATH=%JAVA_HOME%/bin;%PATH%

```

Or something along those lines.

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 11:09am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/13 "2015-12-02T11:09:50Z")

</div>

I suspected of the same issue! Maybe now I will change it to that, and update my variables.

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 11:10am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/14 "2015-12-02T11:10:26Z")

</div>

Can someone edit the installation documentation? I would like to contribute.

---

<div class="post-metadata">

**Author:** ![jochen\_st](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jochen\_st](https://discuss.elastic.co/u/jochen_st)\
**Post date:** [December 2, 2015, 11:11am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/15 "2015-12-02T11:11:51Z")

</div>

Elasticsearch documentation was recently discussed in this blog post: [https://www.elastic.co/blog/the-fine-manual](https://www.elastic.co/blog/the-fine-manual)

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 11:13am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/16 "2015-12-02T11:13:36Z")

</div>

Discussion is not good enough, the documentation could not be traced when I checked your home page.

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 11:20am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/17 "2015-12-02T11:20:42Z")

</div>

Now I have set it. It looks like this:

Microsoft Windows [Version 6.1.7601]  
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

JAVA\_HOME=C:\Java\jdk1.8.0\PATH=%JAVA\_HOME%/bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Wind

---

<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:** [December 2, 2015, 12:03pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/18 "2015-12-02T12:03:37Z")

</div>

Looks wrong. But may be your copy and paste are bad here.

---

<div class="post-metadata">

**Author:** ![nqioweryuadfge](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@nqioweryuadfge](https://discuss.elastic.co/u/nqioweryuadfge)\
**Post date:** [December 2, 2015, 2:54pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/19 "2015-12-02T14:54:12Z")

</div>

This is the code I used:

JAVA\_HOME=C:\Java\jdk1.8.0  
PATH=%JAVA\_HOME%/bin;%PATH%

or should it be like this:

JAVA\_HOME=C:\Java\jdk1.8.0\PATH=%JAVA\_HOME%/bin;%PATH%

For the Variable name I used: JAVA\_HOME

For the other part I used the whole of this without removing anything:

JAVA\_HOME=C:\Java\jdk1.8.0\PATH=%JAVA\_HOME%/bin;%PATH%

Did you mean the following for the bottom part?

C:\Java\jdk1.8.0\PATH=%JAVA\_HOME%/bin;%PATH%

Please let me know before I install!

---

<div class="post-metadata">

**Author:** ![SuperPringles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/superpringles/32/5303_2.png) [@SuperPringles](https://discuss.elastic.co/u/SuperPringles)\
**Post date:** [December 2, 2015, 3:06pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/20 "2015-12-02T15:06:07Z")

</div>

I installed my Java home as:  
`C:\Progra~1\Java\jdk1.8.0_65`

Personally I don't see why you have 'PATH=' within your JAVA\_HOME

This works for me when running Elasticsearch. Also it requires you to restart the computer before using it after making the environment variable

[Next page](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050.md?page=2)
