# Installing OracleJDK 11 failed

**URL:** <https://travis-ci.community/t/installing-oraclejdk-11-failed/13050>\
**Category:** Environments\
**Tags:** build-env, java, travis-build, bug\
**Created:** [June 3, 2022, 11:43am UTC](https://travis-ci.community/t/installing-oraclejdk-11-failed/13050 "2022-06-03T11:43:01Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Montana](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/montana/32/9566_2.png) [@Montana](https://travis-ci.community/u/Montana)\
**Post date:** [June 6, 2022, 4:17pm UTC](https://travis-ci.community/t/installing-oraclejdk-11-failed/13050/6 "2022-06-06T16:17:33Z")

</div>

Hey all,

A temporary fix while we are waiting for InfraOps to patch this is as follows, and please note, the _must_ be used before the `before_install` script hook:

```auto
before_install:
  - curl -s "https://get.sdkman.io" | bash
  - source "$HOME/.sdkman/bin/sdkman-init.sh"
  - sdk install java 11.0.12-open
  - sdk use java 11.0.12-open

```

And remove the following:

```auto
jdk:
  - openjdk11

```

This should do the trick for now, we are still doing some heavy investigating.

---

_[View the full topic](https://travis-ci.community/t/installing-oraclejdk-11-failed/13050)._
