title: Elastic Enterprise/App search installation problem on ubuntu
body: <p>I'm running a vagrant box which runs ubuntu inside a vm (using Laravel Homestead box)</p>
  <p>I'm trying to install the Elastic App-search product.</p>
  <p>The first requirement is to install Elastic search, which i have done multiple times. I did the following steps:
  <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html</a></p>
  <pre class="lang-sh prettyprint-override"><code>wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
  </code></pre>
  <pre class="lang-sh prettyprint-override"><code>sudo apt-get install apt-transport-https
  </code></pre>
  <pre class="lang-sh prettyprint-override"><code>echo &quot;deb https://artifacts.elastic.co/packages/7.x/apt stable main&quot; | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
  </code></pre>
  <pre class="lang-sh prettyprint-override"><code>sudo apt-get update &amp;&amp; sudo apt-get install elasticsearch
  </code></pre>
  <p>I'm using the systemd configuration:</p>
  <pre class="lang-sh prettyprint-override"><code>sudo /bin/systemctl daemon-reload
  sudo /bin/systemctl enable elasticsearch.service
  </code></pre>
  <p>I'm running curl localhost:9200 and everything is working.</p>
  <p>Next I try to install elastic app search.
  <a href="https://www.elastic.co/guide/en/app-search/current/installation.html#installation-self-managed" rel="nofollow noreferrer">https://www.elastic.co/guide/en/app-search/current/installation.html#installation-self-managed</a>.
  Which doesn't have instructions for debian systems. But it does have a .deb install file. I downloaded the file and put it in my project route.</p>
  <p>I ran dpkg -i on the file and it seems to have installed. When I run the command to check the file location it shows this:</p>
  <pre class="lang-sh prettyprint-override"><code> dpkg -L enterprise-search
  </code></pre>
  <pre><code>/.
  /etc
  /etc/init.d
  /etc/init.d/enterprise-search
  /var
  /var/log
  /var/log/enterprise-search
  /usr
  /usr/share
  /usr/share/enterprise-search
  /usr/share/enterprise-search/README.md
  /usr/share/enterprise-search/bin
  /usr/share/enterprise-search/bin/vendor
  /usr/share/enterprise-search/bin/vendor/filebeat
  /usr/share/enterprise-search/bin/vendor/filebeat/filebeat-linux-x86_64
  /usr/share/enterprise-search/bin/enterprise-search
  /usr/share/enterprise-search/filebeat
  /usr/share/enterprise-search/filebeat/ecs-template.json
  /usr/share/enterprise-search/filebeat/filebeat-ecs.yml
  /usr/share/enterprise-search/lib
  /usr/share/enterprise-search/lib/require_java_version.sh
  /usr/share/enterprise-search/lib/enterprise-search.war
  /usr/share/enterprise-search/jetty
  /usr/share/enterprise-search/jetty/webserver-ssl.xml
  /usr/share/enterprise-search/jetty/webserver-ssl-with-redirect.xml
  /usr/share/enterprise-search/jetty/webserver.xml
  /usr/share/enterprise-search/LICENSE
  /usr/share/enterprise-search/config
  /usr/share/enterprise-search/config/env.sh
  /usr/share/enterprise-search/config/enterprise-search.yml
  /usr/share/enterprise-search/NOTICE.txt
  /usr/share/doc
  /usr/share/doc/enterprise-search
  /usr/share/doc/enterprise-search/changelog.gz
  /usr/lib
  /usr/lib/systemd
  /usr/lib/systemd/system
  /usr/lib/systemd/system/enterprise-search.service
  </code></pre>
  <p>I'm not really sure if this is the correct location? I want it to live in the same place as my elasticsearch install, but I'm actually not sure. I did all the next steps for the install process and ran:
  ./usr/share/enterprise-search/bin/elasticsearch</p>
  <p>But this gives me the error:</p>
  <pre><code>Could not find java in PATH
  </code></pre>
  <p>I'm very confused by this since the main elasticsearch installation works and that also needs java? Also i want it also to run with systemd auto-enable and i want it to be available with enterprise-search start / stop. Not sure how to handle that.</p>