Elasticsearch 5.3.0 install - Cannot find java binary


(Greg) #1

I am installing Elasticsearch 5.3.0 on a Windows server2012 R2. I installed the application on the shared mount E: drive. I installed Java and set the path and java_home environment variables on C: drive. When I execute the elasticseaerch.bat file I get error "Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME" . See below. I had Java installed in the Program Files directory but saw another post to not use directory with spaces in it so reinstalled in ProgramData directory. Still same error. Any Ideas appreciated, Thanks

E:\apps\elasticsearch-5.3.0\bin>elasticsearch.bat
Could not find any executable java binary. Please install java in your PATH or set JAVA_HOME

E:\apps\elasticsearch-5.3.0\bin>echo %path%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\ProgramData\Java\jdk1.8.0_131\bin

E:\apps\elasticsearch-5.3.0\bin>echo %java_home%
C:\ProgramData\Java\jdk1.8.0_131\bin

E:\apps\elasticsearch-5.3.0\bin>java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)


(David Pilato) #2

Incorrect JAVA_HOME. Should be: C:\ProgramData\Java\jdk1.8.0_131


(Greg) #3

Thanks, It is installing now


(system) #4

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