A little confused about JAVA requirement to install ES 6.8.15 in a clean Ubuntu 18.04 server

I'm about to install ES 6.8.15 on a CLEAN ubuntu 18.04 server. I know I need JAVA, the question is when i stood up a clean VM with Ubuntu 18.04, It DOES NOT have any JAVA installed at all. So I'm going to have to install OpenJDK 11 onto the servers. Thats not the issue, the issue is that its confusing cause the docs say I have to set the ES_JAVA_HOME if I want to use a custom JAVA, I just want to install the OpenJDK and go from there. So...the question is...

Once I install OpenJDK 11, do I need to set the ES_JAVA_HOME var to get the ES install to work, or will just installing OpenJDK 11 be enough to get it to work.

Is there an example of how I should set ES_JAVA_HOME? (couldn't find it online)

Also, looking at Elastic docs it says the following...

Elasticsearch includes a bundled version of [OpenJDK](https://openjdk.java.net/) from the JDK maintainers (GPLv2+CE). To use your own version of Java, see the [JVM version requirements](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/setup.html#jvm-version)

What does that mean? Does that relate with ES 6.8.15? Do I even have to install JAVA if when I install ES it comes with a bundled version of ES?

Elasticsearch comes with a bundled JVM that you can use. If your OS doesn't have one then you will need to follow the JVM instructions on getting it installed there.

It should work, yes. Elasticsearch will stop using JAVA_HOME in future versions, which is why you will get a deprecation logged and we recommend using ES_JAVA_HOME to be explicit.

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