How do you install elastic search on Windows?

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.

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

Sorry for that. We are now through I suppose.

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

Let me restart.

Okidoki :smiley:

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>

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

I think now it is set.

Can we now proceed from there?

You can check if the results are fine.

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"

What it returns is no path but this: JAVA_HOME

When I use this command:

echo %JAVA_HOME%

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

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:

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.

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

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

So it's wrong.

As I wrote, fix that:

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

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