# Getting below Error while executing elasticsearch.bat

**URL:** <https://discuss.elastic.co/t/getting-below-error-while-executing-elasticsearch-bat/240788>\
**Category:** Elasticsearch\
**Created:** [July 11, 2020, 7:23am UTC](https://discuss.elastic.co/t/getting-below-error-while-executing-elasticsearch-bat/240788 "2020-07-11T07:23:24Z")\
**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, 7:23am UTC](https://discuss.elastic.co/t/getting-below-error-while-executing-elasticsearch-bat/240788/1 "2020-07-11T07:23:24Z")

</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, 7:23am UTC](https://discuss.elastic.co/t/getting-below-error-while-executing-elasticsearch-bat/240788/2 "2020-08-08T07:23:28Z")

</div>

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