# Getting error while installing elastic search on windows

**URL:** <https://discuss.elastic.co/t/getting-error-while-installing-elastic-search-on-windows/240785>\
**Category:** Elasticsearch\
**Created:** [July 11, 2020, 6:53am UTC](https://discuss.elastic.co/t/getting-error-while-installing-elastic-search-on-windows/240785 "2020-07-11T06:53:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vedantmehra18](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vedantmehra18/32/71972_2.png) [@vedantmehra18](https://discuss.elastic.co/u/vedantmehra18)\
**Post date:** [July 11, 2020, 6:53am UTC](https://discuss.elastic.co/t/getting-error-while-installing-elastic-search-on-windows/240785/1 "2020-07-11T06:53:48Z")

</div>

C:\Elastic\_Stack\elasticsearch-7.8.0-windows-x86\_64\elasticsearch-7.8.0\bin\>elasticsearch.bat  
future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0\_144\jre] does not meet this requirement  
future versions of Elasticsearch will require Java 11; your Java version from [C:\Program Files\Java\jdk1.8.0\_144\jre] does not meet this requirement  
Warning: with JDK 8 on Windows, Elasticsearch may be unable to derive correct  
ergonomic settings due to a JDK issue (JDK-8074459). Please use a newer  
version of Java.  
Warning: MaxDirectMemorySize may have been miscalculated due to JDK-8074459.  
Please use a newer version of Java or set MaxDirectMemorySize explicitly.  
**Error: Could not find or load main class Mehra\AppData\Local\Temp\elasticsearch**

---

<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:** [August 8, 2020, 6:53am UTC](https://discuss.elastic.co/t/getting-error-while-installing-elastic-search-on-windows/240785/2 "2020-08-08T06:53:52Z")

</div>

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