# Elasticsearch-1.7.0 installation in window7

**URL:** https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281
**Category:** Elasticsearch
**Created:** [July 25, 2015, 7:11am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281 "2015-07-25T07:11:26Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![alloycivic](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alloycivic](https://discuss.elastic.co/u/alloycivic)
#### Post date: [July 25, 2015, 7:11am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/1 "2015-07-25T07:11:27Z")

</div>

cant install elasticsearch-1.7.0 in window 7. am having the error in the command prompt: "JAVA\_HOME point to an invalid java installation(no java.exe found in C:\program files\java\jdk1.8.0\_45\bin)". please i need some help, how can it be solve

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 25, 2015, 8:44am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/2 "2015-07-25T08:44:20Z")

</div>

Your JAVA\_HOME environment variable points to a path where there is no Java runtime. Make sure you have a Java runtime installed and adjust the JAVA\_HOME variable accordingly.

---

<div class="post-metadata">

### Author: ![alloycivic](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alloycivic](https://discuss.elastic.co/u/alloycivic)
#### Post date: [July 26, 2015, 2:27pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/3 "2015-07-26T14:27:27Z")

</div>

please, am still having the same error. i have install a java runtime jdk latest version and also jre. may be the steps iam following is not correct.  
please, can you give me the step by step procedure to follow and install? it has really stress me for the past 3days. please help me.

---

<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: [July 26, 2015, 4:30pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/4 "2015-07-26T16:30:12Z")

</div>

Make sure your JAVA\_HOME is set for the user running Elasticsearch or for all users.

printenv (or set) should print all variables. If you don't see the JAVA\_HOME fix it.

(JAVA\_HOME)\java -version should display the right version.

When this is fixed, if you still have troubles running Elasticsearch, feel free to update this thread.

---

<div class="post-metadata">

### Author: ![alloycivic](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alloycivic](https://discuss.elastic.co/u/alloycivic)
#### Post date: [July 27, 2015, 1:18am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/5 "2015-07-27T01:18:43Z")

</div>

i have set the JAVA\_HOME properly and when i type in set in the command prompt, it print out all the variables and JAVA\_HOME was included.  
However, when i type "(JAVA\_HOME)\java-version" in the command prompt, i got the response: "\java-version was unexpected at this time".  
Then, the error has not change, it's still giving me: "JAVA\_HOME point to an invalid java installation(no java.exe found in C:\program files\java\jdk1.8.0\_51\bin)". Hence, i can't still 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: [July 27, 2015, 6:02am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/6 "2015-07-27T06:02:38Z")

</div>

if you do:

Cd program files\java\jdk1.8.0\_51\bin  
Java -version

What is happening ?

If it works, might be a recent issue in Elasticsearch.bat

May be you could install java in a dir with no blank or use progra~1 or something (I don't remember what is the short name)

---

<div class="post-metadata">

### Author: ![alloycivic](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alloycivic](https://discuss.elastic.co/u/alloycivic)
#### Post date: [July 28, 2015, 2:17pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/7 "2015-07-28T14:17:35Z")

</div>

when i type :"cd Program Files\Java\jdk1.8.0\_51\bin ".  
its take me into the path properly, but on typing "Java-version", the response is: "Java-version is not recognized as an internal or external command, operable program or batch file"  
please what could be the problem?

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 28, 2015, 3:28pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/8 "2015-07-28T15:28:44Z")

</div>

The command is `java -version`, not `java-version`.

---

<div class="post-metadata">

### Author: ![alloycivic](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alloycivic](https://discuss.elastic.co/u/alloycivic)
#### Post date: [July 28, 2015, 4:37pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/9 "2015-07-28T16:37:39Z")

</div>

That has work. the java version is display, java runtime and java hotspot, all d information is display properly.  
so, could it be d recent issue in elasticsearch.bat?  
Is there any other way to go about it? it's so so important that i install elasticsearch and solve the present problem.  
please help me out.  
Thank you so very much, so far, i appreciate you.

---

<div class="post-metadata">

### Author: ![alloycivic](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@alloycivic](https://discuss.elastic.co/u/alloycivic)
#### Post date: [July 30, 2015, 12:35am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/10 "2015-07-30T00:35:48Z")

</div>

i've downloaded a lower version: 1.4.0 and try to install. it when smoothly, but i got stuck at the last part.  
These is the procedure, i used:  
In the command prompt, i type:  
cd  
cd program files\elasticsearch-1.4.0\bin  
service  
service install  
but, as it was installing service, it pop up an error: 'C:\program' is not recognized as an internal or external command, operable program or batch file'  
failed installing 'elasticsearch-service-x86' service.  
Please what can i do?

---

<div class="post-metadata">

### Author: ![Manish\_R](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Manish\_R](https://discuss.elastic.co/u/Manish_R)
#### Post date: [June 30, 2016, 12:22pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/11 "2016-06-30T12:22:08Z")

</div>

Hi ,

I am trying to install elastic search on my windows (x64) , i have installed the latest java jdk version in my system and the java -version command shows the latest java version and its details. I have even set the JAVA\_HOME system variable . But if i try to install the service using "service install" command. I am getting this exception.

C:\elasticsearch-1.4.4\bin\>service install  
JAVA\_HOME points to an invalid Java installation (no java.exe found in "C:\Progr  
am Files\Java\jdk1.8.0\_92\bin"). Exiting...

Can anyone help me regarding this? Thanks in advance.

---

<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: [June 30, 2016, 12:34pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/12 "2016-06-30T12:34:54Z")

</div>

May be your JAVA\_HOME is only set for the current user and not on a system level?  
Also, I'd definitely avoid installing JAVA in a dir with space in its name like `Program Files`.

---

<div class="post-metadata">

### Author: ![Manish\_R](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Manish\_R](https://discuss.elastic.co/u/Manish_R)
#### Post date: [June 30, 2016, 12:42pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/13 "2016-06-30T12:42:28Z")

</div>

Hi ,

We have set the JAVA\_HOME variable as a System variable only . Would the folder name be an issue in this scenario ? Should we place it in another folder structure without such spaces?

---

<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: [June 30, 2016, 1:55pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/14 "2016-06-30T13:55:09Z")

</div>

Oh? You are using a very old version, right?

I know that there have been issues like this in old versions.

May I suggest that you first update to 1.7?

---

<div class="post-metadata">

### Author: ![Manish\_R](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Manish\_R](https://discuss.elastic.co/u/Manish_R)
#### Post date: [July 1, 2016, 10:38am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/15 "2016-07-01T10:38:21Z")

</div>

Hi ,

I tried using elastic 5.0.0 from the link  
[https://www.elastic.co/downloads/elasticsearch](https://www.elastic.co/downloads/elasticsearch)

Installed the java (java version "1.8.0\_92") and began the process .

I am obtaining the following error in cmd ==\>

**_my java latest version installed_**  
C:\elasticsearch-5.0.0-alpha4\bin\>java -version  
java version "1.8.0\_92"  
Java(TM) SE Runtime Environment (build 1.8.0\_92-b14)  
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

\ ***_path value is set_**  
C:\elasticsearch-5.0.0-alpha4\bin\>echo %path%  
"C:\Java\jdk1.8.0\_92\bin"

\ ***JAVA\_HOME value is set**  
C:\elasticsearch-5.0.0-alpha4\bin\>echo %JAVA\_HOME%  
"C:\Java\jdk1.8.0\_92\bin"

**On trying to install the service**  
C:\elasticsearch-5.0.0-alpha4\bin\>service install  
Could not find any executable java binary. Please install java in your PATH or s  
et JAVA\_HOME

Am I making any mistake? If there is a latest version than this can you provide the link? Thanks.

---

<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: [July 1, 2016, 12:11pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/16 "2016-07-01T12:11:35Z")

</div>

JAVA\_HOME should not contain bin dir

---

<div class="post-metadata">

### Author: ![subodhkarwa](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@subodhkarwa](https://discuss.elastic.co/u/subodhkarwa)
#### Post date: [March 9, 2017, 11:36am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/17 "2017-03-09T11:36:14Z")

</div>

I am also facing the same issue while installing ESS 5.2.2

C:\elasticsearch-5.2.2\>.\bin\elasticsearch  
Could not find any executable java binary. Please install java in your PATH  
set JAVA\_HOME  
Press any key to continue . . .

While, If i type java -version and JAVA\_HOME, they just seem to be fine

C:\elasticsearch-5.2.2\>java -version  
java version "1.8.0\_121"  
Java(TM) SE Runtime Environment (build 1.8.0\_121-b13)  
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)

C:\elasticsearch-5.2.2\>echo %JAVA\_HOME%  
C:\Program Files\Java\jdk1.8.0\_121;

---

<div class="post-metadata">

### Author: ![subodhkarwa](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@subodhkarwa](https://discuss.elastic.co/u/subodhkarwa)
#### Post date: [March 9, 2017, 11:49am UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/18 "2017-03-09T11:49:51Z")

</div>

I modified the elasticsearch.in.bat file as a workaround.

1. Removed the following lines from the file 🙂

IF NOT EXIST %JAVA% (  
ECHO Could not find any executable java binary. Please install java in your PATH or set JAVA\_HOME 1\>&2  
EXIT /B 1  
)

1. Updated " set JAVA="%JAVA\_HOME%\bin\java.exe" to exact path

E.g: set JAVA="C:\Program Files\Java\jdk1.8.0\_121\bin\java.exe"

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [March 9, 2017, 1:09pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/19 "2017-03-09T13:09:22Z")

</div>

Please open a new thread for your issue as it is not related to Elasticsearch 1.7.0 on Windows 7.

---

<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, 10:02pm UTC](https://discuss.elastic.co/t/elasticsearch-1-7-0-installation-in-window7/26281/20 "2017-07-05T22:02:23Z")

</div>


