Elasticsearch cannot find java

Dear All,

I feel a bit dumb as I was able to Elasticsearch/Kibana/Logstash running at our company and did some PoC, for which I decieded to make some tests with different data sets. Here I'm strugling to get it running due to java issues...

NOT Working Setup
Java Installed: (build 1.8.0_191-b12)
Elastic Search: 6.5.1
Logstash: 6.5.1
OS: Win10 Enterprise (1803)

WORKING Setup:
Java Installed: (build 1.8.0_191-b12)
Elastic Search: 6.5.1
Logstash: 6.5.1
OS: Win2016 Technical Preview

on both systems I did set the java path with this:
c:\ELK\logstash-6.5.1\bin>set JAVA_HOME="c:\Program Files\Java\jre1.8.0_191\bin"

Here the installation path of java is identical, and on the WinSRV it runs and the Win10 gives the same error again and again.

any ideas if it is supposed to run on Win10 or am I doing something wrong (Most probably the latter...)

kibana starts without issues, but cannot find a connection to elasticsearch.

Thanks in advance!

Gergö

Hello,
Make sure you set the java path correctly.

If you open command prompt and type
java -version

it must show, java8 version being used.

Then everything works fine

Make sure you have JAVA_HOME set as a system property, not just a local one.

Win10 gives the same error again and again.

What is the specific error you see? How are you launching elasticsearch?

Note that Elasticsearch is tested on the server versions of windows, not the consumer versions. While I don't know think there are any technical reasons it won't work there, please keep that in mind (see our support matrix).

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