Skip to content

Elasticsearch doesn't find bundled JDK #44139

@dandago

Description

@dandago

Elasticsearch version (bin/elasticsearch --version):

7.1.1 and 7.2.0.

Version: 7.1.1, Build: default/zip/7a013de/2019-05-23T14:04:00.380842Z, JVM: 12.0.1
Version: 7.2.0, Build: default/zip/508c38a/2019-06-20T15:54:18.811730Z, JVM: 12.0.1

Plugins installed: []

Nothing extra. Just vanilla Elasticsearch.

JVM version (java -version):

Whatever is bundled with the respective versions (see Elasticsearch version output above).

OS version (uname -a if on a Unix-like system):

Windows 10 Home
Build 17134.829

Description of the problem including expected versus actual behavior:

Even though the JDK is bundled with Elasticsearch as from version 7.0, I still have to set JAVA_HOME for it to work. Elasticsearch complains that it can't find Java bundled at the directory where it actually exists. See the thread I posted at Discuss Elastic which shows the output with Elasticsearch 7.1.1.

Steps to reproduce:

  1. Open cmd.exe
  2. Navigate to the Elasticsearch bin folder
  3. Run elasticsearch.bat

Provide logs (if relevant):

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scriptsTeam:DeliveryMeta label for Delivery team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions