Cannot install v5.2.2, although JAVA is installed

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?

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