# 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:** 3

<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, 3:50pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/41 "2015-12-02T15:50:07Z")

</div>

No, I read an article on ORACLE. There is no such thing. I was trying to add the path through that article when I got confused.

---

<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:55pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/43 "2015-12-02T15:55:42Z")

</div>

Whoops! Accidentally commented using the account of a friend of mine ^^

Okay. If there is no JAVA\_HOME there, then we are going to add one!  
We are going to use the C:\Java\jdk.1.8.0 Before we make the JAVA\_HOME, check one last time if C:\Java\jdk.1.8.0 exists and is actually a JDK folder. Can never be too sure!

When you have checked this then copy the path "C:\Java\jdk.1.8.0" or what the path might be if it turns out to be incorrect.

Press "new" at the System Variables. You will get a pop up windows. The first bit needs the name of the variable. Enter JAVA\_HOME

The second needs the path. You copied this. Enter the path to the JDK here.  
Press "Ok".

There! That is done and if you restart your pc, your JAVA\_HOME should operate for Elasticsearch

---

<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, 3:56pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/44 "2015-12-02T15:56:25Z")

</div>

Sorry for that. We are now through I suppose.

---

<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:58pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/45 "2015-12-02T15:58:28Z")

</div>

No problem! That's what we are here for 🙂  
So does it work now??

---

<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, 3:58pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/46 "2015-12-02T15:58:58Z")

</div>

Let me restart.

---

<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, 4:00pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/47 "2015-12-02T16:00:21Z")

</div>

Okidoki 😃

---

<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, 4:11pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/48 "2015-12-02T16:11:36Z")

</div>

I have done this, and found the following output:

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

C:\Users\Acer\>java -version  
java version "1.8.0\_66"  
Java(TM) SE Runtime Environment (build 1.8.0\_66-b18)  
Java HotSpot(TM) Client VM (build 25.66-b18, mixed mode)

C:\Users\Acer\>

---

<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, 4:12pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/49 "2015-12-02T16:12:48Z")

</div>

The second thing I've done is to check for the path like this, and received the following up to:

C:\Users\Acer\>echo %JAVA\_HOME%  
C:\Java\jdk.1.8.0

---

<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, 4:14pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/50 "2015-12-02T16:14:33Z")

</div>

I think now it is set.

Can we now proceed from there?

---

<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, 4:42pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/51 "2015-12-02T16:42:55Z")

</div>

You can check if the results are fine.

---

<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, 5:02pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/52 "2015-12-02T17:02:26Z")

</div>

If C:\Java\jdk.1.8.0 is the correct path and echo %JAVA\_HOME% returns that path then you are done and the JAVA\_HOME is installed. Nothing more to be done.

If you downloaded the zip from the Elastic website then you can simply go into the folder of elasticsearch and execute the program.

Unzip the file somewhere. Open CMD and move to that folder (using the command "cd") When you are in the elasticsearch folder, move to the bin folder (still in CMD).

When you are there, just type "elasticsearch"

---

<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 3, 2015, 5:02pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/53 "2015-12-03T17:02:47Z")

</div>

What it returns is no path but this: JAVA\_HOME

---

<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 3, 2015, 5:03pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/54 "2015-12-03T17:03:22Z")

</div>

When I use this command:

echo %JAVA\_HOME%

---

<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 4, 2015, 8:34am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/55 "2015-12-04T08:34:49Z")

</div>

Wait but you said you return "C:\Java\jdk.1.8.0" before?  
Have you tried to run elasticsearch like how I explained?

---

<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 4, 2015, 10:19am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/56 "2015-12-04T10:19:36Z")

</div>

As you seem to be having problems installing java may I suggest that you open a discussion on a java mailing list about "how to install java on windows".

It's a prerequisite to launch elasticsearch.

Read:

- [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_installation.html#\_installation](https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.html#_installation)
- [https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html#jvm-version](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup.html#jvm-version)

Then, when you have:

- `java -version` working on your machine with a java 8 version
- Your `JAVA_HOME` environment property correctly set

Then come back to this forum and ask for any help about launching and using elasticsearch...  
We will be super happy to help.

---

<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 4, 2015, 11:59am UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/57 "2015-12-04T11:59:15Z")

</div>

I have not installed it. The results it gave me when I ran echo %JAVA\_HOME%

was this: JAVA\_HOME

Not this: C:\Java\jdk.1.8.0

---

<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 4, 2015, 12:00pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/58 "2015-12-04T12:00:05Z")

</div>

Do we understand each other now, before I install it?

---

<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 4, 2015, 12:54pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/59 "2015-12-04T12:54:41Z")

</div>

So it's wrong.

As I wrote, fix that:

> [@dadoonet](#):
>
> - `java -version` working on your machine with a java 8 version
> - Your `JAVA_HOME` environment property correctly set

May be look at this video? [https://www.youtube.com/watch?v=SnIkVKSed4I](https://www.youtube.com/watch?v=SnIkVKSed4I)

---

<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 8, 2015, 12:43pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/60 "2015-12-08T12:43:31Z")

</div>

I have fixed it, check the output now:

* * *

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

C:\Users\Acer\>echo %JAVA\_HOME%  
C:\Program Files\Java\jdk1.8.0\_25

C:\Users\Acer\>

* * *

The only problem I think is with the Program Files. You said that there should be no spaces, correct? Because I think this might cause a problem. Here is what my folder location looks like:

C:\Program Files\Java\jdk1.8.0\_25

---

<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, 11:32pm UTC](https://discuss.elastic.co/t/how-do-you-install-elastic-search-on-windows/36050/61 "2017-07-05T23:32:38Z")

</div>

Closed on July 5, 2017, 11:32pm UTC



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