# Install of Oracle JDK8 is failing

**URL:** <https://travis-ci.community/t/install-of-oracle-jdk8-is-failing/4365>\
**Category:** Java\
**Tags:** bug\
**Created:** [July 24, 2019, 10:23am UTC](https://travis-ci.community/t/install-of-oracle-jdk8-is-failing/4365 "2019-07-24T10:23:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dominic](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/dominic/32/14_2.png) [@dominic](https://travis-ci.community/u/dominic)\
**Post date:** [July 24, 2019, 2:07pm UTC](https://travis-ci.community/t/install-of-oracle-jdk8-is-failing/4365/3 "2019-07-24T14:07:01Z")

</div>

Sorry for the troubles.

Since you aren’t specifying a `dist:` in your .travis.yml file, this is a side-effect of [our migration to change the default distribution from Trusty to Xenial](https://blog.travis-ci.com/2019-04-15-xenial-default-build-environment).

In brief, your repository’s default changed and `oraclejdk8` isn’t supported on Xenial.

The workaround is to either add `dist: trusty` to your .travis.yml file or use `openjdk8`.

Hope this helps!

---

_[View the full topic](https://travis-ci.community/t/install-of-oracle-jdk8-is-failing/4365)._
