# Which Free JRE we can use? Oracle JavaSE or OpenJDK

**URL:** <https://discuss.elastic.co/t/which-free-jre-we-can-use-oracle-javase-or-openjdk/141158>\
**Category:** Elasticsearch\
**Created:** [July 23, 2018, 11:37am UTC](https://discuss.elastic.co/t/which-free-jre-we-can-use-oracle-javase-or-openjdk/141158 "2018-07-23T11:37:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruce\_Wong](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@Bruce\_Wong](https://discuss.elastic.co/u/Bruce_Wong)\
**Post date:** [July 23, 2018, 11:37am UTC](https://discuss.elastic.co/t/which-free-jre-we-can-use-oracle-javase-or-openjdk/141158/1 "2018-07-23T11:37:29Z")

</div>

Hello,  
I am going to use Elasticsearch 6.3.x for a commercial software, but I am confused on the license issue of JRE, from this link [http://www.oracle.com/technetwork/articles/javase/faqs-jsp-136696.html](http://www.oracle.com/technetwork/articles/javase/faqs-jsp-136696.html) , it looks like JRE is free for general purpose computing, but not for embedded devices or us of commercial features.

Does anyone know whether the Elasticsearch only uses JRE on general purpose computing? or will it use certain commercial feature in some scenario?

Other links for reference: [https://www.theregister.co.uk/2016/12/16/oracle\_targets\_java\_users\_non\_compliance/](https://www.theregister.co.uk/2016/12/16/oracle_targets_java_users_non_compliance/)  
[http://www.oracle.com/technetwork/java/javase/documentation/java-se-lium-2017-09-18-3900135.pdf](http://www.oracle.com/technetwork/java/javase/documentation/java-se-lium-2017-09-18-3900135.pdf)

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [July 27, 2018, 9:51am UTC](https://discuss.elastic.co/t/which-free-jre-we-can-use-oracle-javase-or-openjdk/141158/2 "2018-07-27T09:51:05Z")

</div>

Hi,

first of all, I am not a lawyer so I am not able to give you definitive advice. The licensing policies of Oracle are about to change with JDK 11. For more info please see:

- [https://dev.karakun.com/java/2018/06/25/java-releases.html](https://dev.karakun.com/java/2018/06/25/java-releases.html)
- [https://blogs.oracle.com/java-platform-group/update-and-faq-on-the-java-se-release-cadence](https://blogs.oracle.com/java-platform-group/update-and-faq-on-the-java-se-release-cadence)

Elasticsearch does not rely on features that are specific to Oracle JDK and Oracle also invested effort to get both OpenJDK and Oracle JDK on par w.r.t. features (for example: Java flight recorder which was previously a commercial feature in Oracle's JDK will also be contained in the upcoming OpenJDK).

Daniel

---

<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:** [August 24, 2018, 9:53am UTC](https://discuss.elastic.co/t/which-free-jre-we-can-use-oracle-javase-or-openjdk/141158/3 "2018-08-24T09:53:26Z")

</div>

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