win安装Elasticsearch报错:xxx not found

端午节,调了一下午的程序,不得不说:有的坑,很深很深…

故事发生的背景:
安装 medcl / elasticsearch-rtf ;本地环境是win10 ; java配置无错,但是始终提示:
Could not find any executable java binary.Please install java in your PATH
或者
ClassNotFoundException: org.elasticsearch. …

问题确实出在java上。不管环境是否配置正确,始终获取不到java_home
在几经折磨后,直接改了他的配置。如下图

win安装Elasticsearch报错:xxx not found
在你的安装包下 找到这个文件

然后打开它

win安装Elasticsearch报错:xxx not found
在我框中的地方使用绝对路径

重点:关闭git 使用cmd安装 成功