Elasticsearch 7.10.2 Installation - “jdk “ ” was unexpected at this time”

Hello, I'm trying to install Elasticsearch on premises. I've unziped it and I can't start it from command line:

C:\Program Files\elasticsearch-7.10.2\bin>elasticsearch.bat
Files\elasticsearch-7.10.2\jdk"" was unexpected at this time.

C:\Program Files\elasticsearch-7.10.2>echo %JAVA_HOME%
"C:\Program Files\elasticsearch-7.10.2\jdk"

elasticsearch.yml:
cluster.name: esaxa
node.name: MORRIS
network.host: 10.146.114.83
http.port: 9200

Thanks in advance,
Daniel Cenáculo

dcenaculo you have 2 options. You can install elastic search msi. package acquired at:
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.2.msi
and run the msi package for installation,

or

you can set the Java_Home variable using the instructions found here:
https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/

Welcome to our community! :smiley:

Try moving Elasticsearch into a directory that doesn't have a space in it's name.

Is this a known issue with Windows .zip installations?

I'm getting the same error on Windows Server 2016
C:\Program Files\elasticsearch-7.10.2

.\bin\elasticsearch.bat

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