# Setting up elasticsearch 6.0.1

**URL:** <https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280>\
**Category:** Elasticsearch\
**Created:** [December 12, 2017, 9:23am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280 "2017-12-12T09:23:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Pm](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@Rahul\_Pm](https://discuss.elastic.co/u/Rahul_Pm)\
**Post date:** [December 12, 2017, 9:23am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280/1 "2017-12-12T09:23:12Z")

</div>

Hi,  
Im trying to install Elasticsearch 6 on windows using .zip file. I unzipped the file, tried running it from cmd using elasticsearch.bat and initially got an error with JAVA\_HOME. So downloaded JDK 9 ,pointed the location and tried running it again. Now I get an error that says :  
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.

What should I do next ? Should I try the previous version of Java ?

Any help would be much appreciated.

Thanks and Regards,  
Rahul

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 12, 2017, 9:28am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280/2 "2017-12-12T09:28:55Z")

</div>

We don't support Java 9 at the moment, please use Java 8.

---

<div class="post-metadata">

**Author:** ![Rahul\_Pm](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@Rahul\_Pm](https://discuss.elastic.co/u/Rahul_Pm)\
**Post date:** [December 12, 2017, 10:26am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280/3 "2017-12-12T10:26:27Z")

</div>

Thank you Mark 🙂

---

<div class="post-metadata">

**Author:** ![Rahul\_Pm](https://avatars.discourse-cdn.com/v4/letter/r/7ea924/32.png) [@Rahul\_Pm](https://discuss.elastic.co/u/Rahul_Pm)\
**Post date:** [December 12, 2017, 10:40am UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280/4 "2017-12-12T10:40:30Z")

</div>

Hi ,

I installed jdk 8 , and set environment variable JAVA\_HOME : " % LOCATION %" . And I tried running elasticsearch from cmd again.

It gives me an error saying " could not find java; set JAVA\_HOME or ensure java is in PATH "

Can you help me out ?

Thank you,  
Rahul

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 13, 2017, 9:09pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280/5 "2017-12-13T21:09:25Z")

</div>

> [@Rahul\_Pm](#):
>
> I installed jdk 8 , and set environment variable JAVA\_HOME : " % LOCATION %" . And I tried running elasticsearch from cmd again.

How did you set it? What OS are you on?

---

<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:** [January 10, 2018, 9:09pm UTC](https://discuss.elastic.co/t/setting-up-elasticsearch-6-0-1/111280/6 "2018-01-10T21:09:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
