# Cannot install v5.2.2, although JAVA is installed

**URL:** https://discuss.elastic.co/t/cannot-install-v5-2-2-although-java-is-installed/79365
**Category:** Logstash
**Created:** [March 21, 2017, 8:12am UTC](https://discuss.elastic.co/t/cannot-install-v5-2-2-although-java-is-installed/79365 "2017-03-21T08:12:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![netfisher](https://avatars.discourse-cdn.com/v4/letter/n/f6c823/32.png) [@netfisher](https://discuss.elastic.co/u/netfisher)
#### Post date: [March 21, 2017, 8:12am UTC](https://discuss.elastic.co/t/cannot-install-v5-2-2-although-java-is-installed/79365/1 "2017-03-21T08:12:53Z")

</div>

During the installation process Logstash v5.2.2 an error occurs _"Could not find any executable java binary. Please install java in your PATH or set JAVA\_HOME."_ Installing on the server with installed ubuntu 16.04.2-server x64. Used the native package system of Ubuntu with OpenJDK (JRE). After the error occurs, set Oracle JDK 8 but the problem persists. Path #JAVA\_HOME spelled correctly. Because the installation of Elasticsearch was entered correctly.  
Tell me, what can I do for a normal installation of the product?

---

<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: [April 18, 2017, 8:13am UTC](https://discuss.elastic.co/t/cannot-install-v5-2-2-although-java-is-installed/79365/2 "2017-04-18T08:13:14Z")

</div>

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