Reputation: 1
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?
Upvotes: 0
Views: 6413
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
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