# Travis CI unable to install openjdk8 when other openjdk versions are included

**URL:** <https://travis-ci.community/t/travis-ci-unable-to-install-openjdk8-when-other-openjdk-versions-are-included/11069>\
**Category:** Java\
**Tags:** bug\
**Created:** [January 23, 2021, 6:14am UTC](https://travis-ci.community/t/travis-ci-unable-to-install-openjdk8-when-other-openjdk-versions-are-included/11069 "2021-01-23T06:14:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan2403](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/johan2403/32/6064_2.png) [@Johan2403](https://travis-ci.community/u/Johan2403)\
**Post date:** [January 23, 2021, 6:14am UTC](https://travis-ci.community/t/travis-ci-unable-to-install-openjdk8-when-other-openjdk-versions-are-included/11069/1 "2021-01-23T06:14:08Z")

</div>

When I add openjdk11 and 15 to my build along with openjdk8 the build fails. Other versions work fine.

My build:  
[https://travis-ci.org/github/Johan2403/OPMonsters/builds/755793765](https://travis-ci.org/github/Johan2403/OPMonsters/builds/755793765)

Please help me and thanks in advance.

---

<div class="post-metadata">

**Author:** ![Johan2403](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/johan2403/32/6064_2.png) [@Johan2403](https://travis-ci.community/u/Johan2403)\
**Post date:** [January 23, 2021, 12:22pm UTC](https://travis-ci.community/t/travis-ci-unable-to-install-openjdk8-when-other-openjdk-versions-are-included/11069/2 "2021-01-23T12:22:20Z")

</div>

Ok I fixed this issue by changing my linux distribution to bionic. I used focal there. I think this an isuue with travis-ci.

---

<div class="post-metadata">

**Author:** ![Johan2403](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/johan2403/32/6064_2.png) [@Johan2403](https://travis-ci.community/u/Johan2403)\
**Post date:** [January 30, 2021, 6:05am UTC](https://travis-ci.community/t/travis-ci-unable-to-install-openjdk8-when-other-openjdk-versions-are-included/11069/3 "2021-01-30T06:05:08Z")

</div>

Additional info: It seems that this problem occurs when I use openjdk8 regardless of other openjdk versions present or not. This problem is only in focal images. It is using the install-jdk.sh to install the jdk which causes build errors.

Build: [Travis CI - Test and Deploy with Confidence](https://travis-ci.com/github/Johan2403/NinjaClient/builds/215388057)
