# Facing problems while configuring elasticsearch on Windows7

**URL:** <https://discuss.elastic.co/t/facing-problems-while-configuring-elasticsearch-on-windows7/8296>\
**Category:** Elasticsearch\
**Created:** [July 3, 2012, 10:03am UTC](https://discuss.elastic.co/t/facing-problems-while-configuring-elasticsearch-on-windows7/8296 "2012-07-03T10:03:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Shaheen](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@Amir\_Shaheen](https://discuss.elastic.co/u/Amir_Shaheen)\
**Post date:** [July 3, 2012, 10:03am UTC](https://discuss.elastic.co/t/facing-problems-while-configuring-elasticsearch-on-windows7/8296/1 "2012-07-03T10:03:09Z")

</div>

Steps:  
1- Put elasticsearch directory in a drive  
2- Add its path to environment variables  
3- Set JAVE\_HOME path  
4- But when i execute bin/elasticsearch.bat from command line it does not  
do anything  
D:\elasticsearch\bin  
elasticsearch.bat  
it shows error  
The system cannot find the path specified.

---

<div class="post-metadata">

**Author:** ![Chris\_Davies](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_davies/32/2734_2.png) [@Chris\_Davies](https://discuss.elastic.co/u/Chris_Davies)\
**Post date:** [September 11, 2012, 2:13pm UTC](https://discuss.elastic.co/t/facing-problems-while-configuring-elasticsearch-on-windows7/8296/2 "2012-09-11T14:13:56Z")

</div>

What is your Java home path set to? It should not be set to your bin  
folder (this is the mistake I made), but to the folder above your bin  
folder.

So, I originally had:  
C:\Program Files\Java\jdk1.7.0\_06\bin

But this is the path that worked:  
C:\Program Files\Java\jdk1.7.0\_06

On Tuesday, July 3, 2012 6:03:09 AM UTC-4, Amir Shaheen wrote:

> Steps:  
> 1- Put elasticsearch directory in a drive  
> 2- Add its path to environment variables  
> 3- Set JAVE\_HOME path  
> 4- But when i execute bin/elasticsearch.bat from command line it does not  
> do anything  
> D:\elasticsearch\bin  
> elasticsearch.bat  
> it shows error  
> The system cannot find the path specified.

--

---

<div class="post-metadata">

**Author:** ![nhan248](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@nhan248](https://discuss.elastic.co/u/nhan248)\
**Post date:** [February 27, 2013, 7:44pm UTC](https://discuss.elastic.co/t/facing-problems-while-configuring-elasticsearch-on-windows7/8296/3 "2013-02-27T19:44:35Z")

</div>

Event not worked

---

<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 6, 2017, 2:49am UTC](https://discuss.elastic.co/t/facing-problems-while-configuring-elasticsearch-on-windows7/8296/4 "2017-07-06T02:49:13Z")

</div>


