# Java JDK old version

**URL:** <https://discuss.elastic.co/t/java-jdk-old-version/253383>\
**Category:** Elasticsearch\
**Created:** [October 27, 2020, 3:30am UTC](https://discuss.elastic.co/t/java-jdk-old-version/253383 "2020-10-27T03:30:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfoot](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@dfoot](https://discuss.elastic.co/u/dfoot)\
**Post date:** [October 27, 2020, 3:30am UTC](https://discuss.elastic.co/t/java-jdk-old-version/253383/1 "2020-10-27T03:30:34Z")

</div>

ELK version 7.1.1... vulnerability scanning shows Java old version found on elasticsearch nodes path for ELK cluster and logstash

Java JDK installation on Elasticsearch nodes path /usr/share/elasticsearch/jdk/ version '1.12.0\_1'. We do have java running on nodes 1.8.0\_262.

Can you confirm the old version that Elasticsearch may have put them during the install and if it does actually get used or if it is there for API access or something else? If not required then we can remove them due to latest vulnerabilities list.

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [October 29, 2020, 4:46am UTC](https://discuss.elastic.co/t/java-jdk-old-version/253383/2 "2020-10-29T04:46:46Z")

</div>

Elasticsearch ships with a JDK that is used by default.

> **[Set up Elasticsearch | Elasticsearch Reference \[7.9\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/setup.html#jvm-version)**

If you are not using it then you can remove it **but** unless you have taken specific steps to configure Elasticsearch to use your own JDK, then you probably are using the bundled JDK and **simply removing it will break Elasticsearch**.

Note: Elasticsearch 7.1.1 was [released](https://www.elastic.co/blog/elastic-stack-7-1-1-released) almost 18 months ago. If you're worried about old JDK versions, then you should also be worried about old Elasticsearch versions. If you keep your Elasticsearch version up to date, it will automatically upgrade the bundled JDK to a recent release as well.

---

<div class="post-metadata">

**Author:** ![dfoot](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@dfoot](https://discuss.elastic.co/u/dfoot)\
**Post date:** [October 29, 2020, 11:18am UTC](https://discuss.elastic.co/t/java-jdk-old-version/253383/3 "2020-10-29T11:18:03Z")

</div>

Hi Tim,

ELK version is 7.1.1 and latest version on each node is 1.8.0\_\*

Plugin Output:

The following Java JRE installation is unsupported :

Path : /usr/share/elasticsearch/jdk/

Installed version : 1.12.0\_1

Regards

Dave

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [October 30, 2020, 12:44am UTC](https://discuss.elastic.co/t/java-jdk-old-version/253383/4 "2020-10-30T00:44:25Z")

</div>

I don't understand why you are giving me that information.

You are running Elasticsearch 7.1.1 that ships with JDK 12

The most recent version of Elasticsearch is 7.9.3 and it ships with JDK 15.  
If you upgrade your Elasticsearch version it will solve your JDK version issue.

Otherwise, you _can_ switch your existing Elasticsearch version to use your own JDK instead by following the instructions I linked to in my previous reply. However, you need to perform those steps carefully, because you risk breaking Elasticsearch if you do the wrong thing.

---

<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:** [November 27, 2020, 12:44am UTC](https://discuss.elastic.co/t/java-jdk-old-version/253383/5 "2020-11-27T00:44:25Z")

</div>

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