shery
shery

Reputation: 1

Windows7 run elasticsearch.bat Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME

enter image description here

I want to use elasticsearch on Windows64. At first my Java version is not the same as the Java_Home.Then I reinstalled JAVA. And I found a solution said that the system will find JAVA under C:\ProgramData\Oracle\Java\javapath , So I replaced the latest java.exe javaw.exe , javaws.exe there, but the problem still exists.

I found below code in C:\elasticsearch-5.2.1\bin\elasticsearch could I do any changes to this to fix this problem?

enter image description here

Upvotes: 0

Views: 6413

Answers (2)

MayankGaur
MayankGaur

Reputation: 993

Add C:\ProgramData\Oracle\Java\javapath; to Path variable in Environment variable.

And Remove JAVA_HOME, as you have already Java Path to Path, you don't need to mention it twice.

It will surely help

Upvotes: 1

MJakhongir
MJakhongir

Reputation: 3028

Have you tried following? Check your Environment variables for "JAVA_HOME" and "Path" inside system variables. The location for JAVA_HOME is your the location of your jdk For Path variable you should add new "...\Oracle\Java\javapath"

Upvotes: 1

Related Questions