future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题

future versions of Elasticsearch will require Java 11; your Java version from [D:\elasticsearch-7.6.2-windows-x86_64\elasticsearch-7.6.2\jdk] 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.

报错:Elasticsearch和当前的jdk1.8不兼容,要求将jdk升级到11版本的

解决方法:

1.找到ES,bin目录下的elasticsearch-env.bat文件,修改里面的内容

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题_第1张图片

2.修改文件名字,才能打开文件

future versions of Elasticsearch will require Java 11; your Java version from...elasticsearch闪退问题_第2张图片

3.以记事本打开为例

你可能感兴趣的:(idea常见问题,elasticsearch,java,搜索引擎)