# Installation of Elastic search 2.0

**URL:** <https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135>\
**Category:** Elasticsearch\
**Created:** [November 20, 2015, 9:23am UTC](https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135 "2015-11-20T09:23:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gn00342691](https://avatars.discourse-cdn.com/v4/letter/g/f4b2a3/32.png) [@gn00342691](https://discuss.elastic.co/u/gn00342691)\
**Post date:** [November 20, 2015, 9:23am UTC](https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135/1 "2015-11-20T09:23:18Z")

</div>

Hi,  
I am trying to install Elasticsearch on Window 7. I have installed JDK 1.8.0\_60 and JRE 1.8.0\_66.

I have set the JAVA\_HOME to **C:\Program Files\Java\jdk1.8.0\_60\bin** &  
PATH to **C:\Program Files\Java\jre1.8.0\_66\bin**

Executing java -version on the command prompt gives the below output:  
**C:\Users\gn00342691\>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\gn00342691\>echo $JAVA\_HOME**  
**$JAVA\_HOME**

When I execute the elasticsearch batch file from the dump I get the below error and setup does not start:  
**D:\Hinjewadi\Office\es200\bin\>elasticsearch.bat**  
**The system cannot find the path specified.**

Can you please help in resolving this or point out where I am going wrong.

Thanks,  
Gaurav

---

<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:** [November 20, 2015, 12:05pm UTC](https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135/2 "2015-11-20T12:05:15Z")

</div>

It's probably unrelated, but `echo $JAVA_HOME` is Unix. The equivalent on Windows would be `echo %JAVA_HOME%`. Hence, it's not obvious that JAVA\_HOME is set.

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [November 20, 2015, 12:09pm UTC](https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135/3 "2015-11-20T12:09:03Z")

</div>

Hi,  
I'm not a Windows person, but it looks like JAVA\_HOME is not set correctly. As far as I know you use `echo %JAVA_HOME%` on windows to check the variable.

---

<div class="post-metadata">

**Author:** ![cbuescher](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cbuescher/32/60402_2.png) [@cbuescher](https://discuss.elastic.co/u/cbuescher)\
**Post date:** [November 20, 2015, 12:10pm UTC](https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135/4 "2015-11-20T12:10:47Z")

</div>

@magnusbaeck thanks, just crossed our replies

---

<div class="post-metadata">

**Author:** ![gn00342691](https://avatars.discourse-cdn.com/v4/letter/g/f4b2a3/32.png) [@gn00342691](https://discuss.elastic.co/u/gn00342691)\
**Post date:** [November 20, 2015, 12:28pm UTC](https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135/5 "2015-11-20T12:28:49Z")

</div>

Thanks all for your inputs. The JAVA\_HOME path was wrongly set till the Bin folder. Also created CLASSPATH and PATH variables under User variables under Environment variables.  
Below are the values set which made the installation going ahead.

System Environment variables -  
JAVA\_HOME - \*_C:\Program Files\Java\jdk1.8.0\_60\*_  
PATH - **C:\Program Files\Java\jre1.8.0\_66\bin**

User Environement variables -

PATH - **C:\Program Files\Java\jdk1.8.0\_60\bin**  
CLASSPATH - **C:\Program Files\Java\jdk1.8.0\_60\lib**

---

<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:36pm UTC](https://discuss.elastic.co/t/installation-of-elastic-search-2-0/35135/6 "2017-07-05T23:36:56Z")

</div>


