# Elasticsearch 5.3.0 install - Cannot find java binary

**URL:** <https://discuss.elastic.co/t/elasticsearch-5-3-0-install-cannot-find-java-binary/83122>\
**Category:** Elasticsearch\
**Created:** [April 20, 2017, 9:46pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-0-install-cannot-find-java-binary/83122 "2017-04-20T21:46:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![glturle](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@glturle](https://discuss.elastic.co/u/glturle)\
**Post date:** [April 20, 2017, 9:46pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-0-install-cannot-find-java-binary/83122/1 "2017-04-20T21:46:39Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 20, 2017, 10:11pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-0-install-cannot-find-java-binary/83122/2 "2017-04-20T22:11:54Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![glturle](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@glturle](https://discuss.elastic.co/u/glturle)\
**Post date:** [April 20, 2017, 10:21pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-0-install-cannot-find-java-binary/83122/3 "2017-04-20T22:21:31Z")

</div>

Thanks, It is installing now

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 18, 2017, 10:22pm UTC](https://discuss.elastic.co/t/elasticsearch-5-3-0-install-cannot-find-java-binary/83122/4 "2017-05-18T22:22:57Z")

</div>

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