# Centos 8 install Java before installing the elasticstack?

**URL:** <https://discuss.elastic.co/t/centos-8-install-java-before-installing-the-elasticstack/239546>\
**Category:** Elasticsearch\
**Created:** [July 1, 2020, 8:52pm UTC](https://discuss.elastic.co/t/centos-8-install-java-before-installing-the-elasticstack/239546 "2020-07-01T20:52:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [July 1, 2020, 8:52pm UTC](https://discuss.elastic.co/t/centos-8-install-java-before-installing-the-elasticstack/239546/1 "2020-07-01T20:52:49Z")

</div>

Hi, in the documentation says that elasticsearch includes a bundled version of OpenJDK

```auto
Elasticsearch is built using Java, and includes a bundled version of OpenJDK from the JDK maintainers (GPLv2+CE) within each distribution. 

```

That means that its not necesary to install java before installing elasticsearch, logstash or kibana?

---

<div class="post-metadata">

**Author:** ![sej7278](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@sej7278](https://discuss.elastic.co/u/sej7278)\
**Post date:** [July 2, 2020, 5:13pm UTC](https://discuss.elastic.co/t/centos-8-install-java-before-installing-the-elasticstack/239546/2 "2020-07-02T17:13:08Z")

</div>

that's interesting, certainly /usr/share/elasticsearch/jdk/bin/java -version returns:

```auto
openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 14.0.1+7, mixed mode, sharing)

```

which is not the java-1.8.0-openjdk-headless-1.8.0.252.b09-3.el8\_2.x86\_64 i installed, and uninstalling openjdk does not try to uninstall any of ELK as a dependency, and `ps auxw|grep java` shows the ES version running, so seems like openjdk is not required, but would like confirmation.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 30, 2020, 5:13pm UTC](https://discuss.elastic.co/t/centos-8-install-java-before-installing-the-elasticstack/239546/3 "2020-07-30T17:13:09Z")

</div>

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