# Provide JDKs via Docker

**URL:** <https://travis-ci.community/t/provide-jdks-via-docker/3922>\
**Category:** Uncategorized\
**Tags:** java\
**Created:** [June 26, 2019, 1:11pm UTC](https://travis-ci.community/t/provide-jdks-via-docker/3922 "2019-06-26T13:11:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [June 26, 2019, 3:59pm UTC](https://travis-ci.community/t/provide-jdks-via-docker/3922/2 "2019-06-26T15:59:23Z")

</div>

[AFAICS, the main concern is what Oracle licensing allows](https://travis-ci.community/t/install-of-openjdk11-is-failing/1914/6).

I cannot find a concrete answer to that at [https://www.oracle.com/technetwork/java/javase/terms/products/index.html](https://www.oracle.com/technetwork/java/javase/terms/products/index.html) and [https://www.oracle.com/technetwork/java/javase/terms/license/index.html](https://www.oracle.com/technetwork/java/javase/terms/license/index.html). The BCL only explicitly allows to _“reproduce and use internally the Software complete and unmodified for the sole purpose of running Programs”._ Whether providing a commercial service with JDK tools themselves qualifies as that under applicable law is something to ask their legal department.

That said, the BCL does allow redistribution, so if Oracle didn’t C&D them for installing the JDK on the fly, having it in the images shouldn’t make much of a difference since the service is essentially the same. This does make it harder for Oracle to cut the service to Travis if they wish to, so if this is actually a legally grey area, this may make a difference.

---

_[View the full topic](https://travis-ci.community/t/provide-jdks-via-docker/3922)._
