systemctl start elasticsearch.service fails and gives the error elasticsearch-systemd-pre-exec[4614]: could not find java in bundled jdk at /usr/share/elasticsearch/jdk/bin/java /usr/share/elasticsearch/ doesn't contain any folder jdk
Workaround on systemd: Install OpenJDK 11 then in /etc/systemd/system/elasticsearch.service.d/java.conf , put the correct JAVA_HOME (ES_JAVA_HOME is preferred by Elasticsearch): [Service] Environment="ES_JAVA_HOME=/opt/openjdk-bin-11" In /etc/elasticsearch/jvm.options , comment out the Xlog line around line ~92. Otherwise ES will not start. Then run `systemctl daemon-reload` and start the service.