# Bundled JDK with version 7.0.x

**URL:** https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684
**Category:** Elasticsearch
**Created:** [May 12, 2019, 7:06am UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684 "2019-05-12T07:06:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![e-orz](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@e-orz](https://discuss.elastic.co/u/e-orz)
#### Post date: [May 12, 2019, 7:06am UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/1 "2019-05-12T07:06:54Z")

</div>

Hi,  
Starting with version 7, Elasticsearch comes with bundled JDK.  
Oracle changed the license of the JDK and disallows commercial use with the one packaged by Oracle.  
(other alternatives are AdoptOpenJDK and more)

Is the JDK that comes with the tar.gz the Oracle's one?

thanks,  
Eli

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [May 13, 2019, 5:57am UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/2 "2019-05-13T05:57:32Z")

</div>

As far as I can tell it seems bundled with OpenJDK, which is free.

---

<div class="post-metadata">

### Author: ![e-orz](https://avatars.discourse-cdn.com/v4/letter/e/b2d939/32.png) [@e-orz](https://discuss.elastic.co/u/e-orz)
#### Post date: [May 13, 2019, 9:21am UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/3 "2019-05-13T09:21:07Z")

</div>

Thanks!  
I checked the SHA256 of the downloaded file - and it matches to the one in the [jdk.java.net](http://jdk.java.net), so it seems ok.

What surprised me was that with the new ES version (7.0.1) the source host was switched to the [download.oracle.com](http://download.oracle.com) (see this [PR](https://github.com/elastic/elasticsearch/pull/41627/files)).

Thanks anyway,  
Eli

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 13, 2019, 9:36am UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/4 "2019-05-13T09:36:18Z")

</div>

Good question. @jasontedor could you tell why you changed the java provider for java11 in a PR which is related to java12.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [May 15, 2019, 11:58pm UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/5 "2019-05-15T23:58:58Z")

</div>

The bundled JDK is OpenJDK, it is not encumbered by a commercial license. The reason that we switched the download link is because there was a temporary period where [jdk.java.net](http://jdk.java.net) was broken. This is actually because Oracle was in the process of setting up redirects from [jdk.java.net](http://jdk.java.net) to [download.oracle.com](http://download.oracle.com).

@dadoonet I'm not sure what you meant about java11 vs. java12.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [May 16, 2019, 4:33am UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/6 "2019-05-16T04:33:35Z")

</div>

@jasontedor I was confused by the title of the PR where this change happened:

> <https://github.com/elastic/elasticsearch/pull/41627>

The title mentions an upgrade to java12 but the PR changes URLs related to Java11.

Anyway thanks for the explanation.

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [May 18, 2019, 3:56pm UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/7 "2019-05-18T15:56:43Z")

</div>

That pull request was about bumping the bundled JDK from JDK 12 to JDK 12.0.1. You can see this in the [diff](https://github.com/elastic/elasticsearch/pull/41627/files#diff-dfabeab7bbe8154d50dc82842afe62b7R4). However, this change occurred exactly when Oracle temporarily broke the download links from [jdk.java.net](http://jdk.java.net), so in that same change, I also updated all existing links that relied on [jdk.java.net](http://jdk.java.net) to instead use [download.oracle.com](http://download.oracle.com). This impacted not only the JDK 12 builds, but also the JDK 11s that we install in the packaging tests (which on master we run against the LTS version of the JDK).

---

<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: [June 15, 2019, 3:56pm UTC](https://discuss.elastic.co/t/bundled-jdk-with-version-7-0-x/180684/8 "2019-06-15T15:56:46Z")

</div>

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